How to capture the gray scale photo

Hi. I followed this (
https://msdn.microsoft.com/en-us/library/windows/apps/hh202982(v=vs.105).aspx ) example to capture photos and also in gray scale but the sample doesn't capture the gray image, it only pumps the gray pixels to the Image control. How can I freeze these
pixels in the Image control or capture it as a jpg? Thank you in advance. 

I should have been more clear. Forgive me.  I followed that example and added all the functionality as in the example like the focus(auto and tap), the flash light ect and it works but when it comes to the grayscale: the example only streams the converted
pixels to the image control. It does not "capture" the image. Somehow I have to stop pumping the grayscaled pixels to the Image control and then I want to save-send the "gray" image. What's the easiest way to do that? This is what I have
so far:
MyClient.DownloadStringAsync(new Uri("http://www.iclips.co.za/sign_in.php?username=Clint William Theron&password=k"));
However, the username and password is empty on the server side. How do I add paramters and download the server's response? Thanks in advance
I basically want to turn this:
var values = new List<KeyValuePair<string, string>>
new KeyValuePair<string, string>("username", un),
new KeyValuePair<string, string>("password", pw),
new KeyValuePair<string, string>("friends", friends),
new KeyValuePair<string, string>("density", "high"),
new KeyValuePair<string, string>("platform", "Windows Phone"),
var task = DoPost_Sign_In_To_Server("http://www.iclips.co.za/sign_in.php", values);
async Task DoPost_Sign_In_To_Server(string url, IEnumerable<KeyValuePair<string, string>> values)
try
var httpClient = new HttpClient(new HttpClientHandler());
HttpResponseMessage response = await httpClient.PostAsync(url, new FormUrlEncodedContent(values));
response.EnsureSuccessStatusCode();
var responseString = await response.Content.ReadAsStringAsync();
this.Dispatcher.BeginInvoke(delegate()
if (responseString.Trim().StartsWith("Welcome to iClips. You need to delete"))
MessageBox.Show(responseString);
return;
if (responseString.Trim().StartsWith("Welcome to iClips"))
//this means sign up was succesfull
//so now we signed in
txtDebug.Text = "Sign In Successfull :-)";
vibrator.Start(TimeSpan.FromSeconds(1));
else
MessageBox.Show("Network Error: \n" + responseString);
signForm.Visibility = Visibility.Visible;
signForm_Shadow.Visibility = Visibility.Visible;
catch (Exception ex)
MessageBox.Show("Network Error: \n" + ex.Message.ToString());
signForm.Visibility = Visibility.Visible;
signForm_Shadow.Visibility = Visibility.Visible;
txtDebug.Text = "Try to Sign In >> again.";
in to WebClient, because of the progress bar that can be bind to WebClient.

Similar Messages

  • Gray scale photos images are different but should be the same; help?

    I send a gray scale image from Lightroom (Edit with ...) and it opened CS4 photoshop.
    I made a blank document , 11x14".
    I used Windows/arrange/ tile to view the blank and the gray scale image. I tired various methods of bringing the gray scale image to the blank one (move tool, select all and move, copy and paste). Each time, I did this within seconds of each other (I made no changes to fill, opacity, and I used Normal). I brought the image in twice so I could print out the SAME image twice on the larger 11x14 at Sams club in order to use the Epson 7800 printer and not the old wet process on the Fugi machine. One image is darker(lighter) than the other every time. I even tried another image and I got two different exposures.
    I wonder if it it only happens with the grayscale images? Perhaps it is a problem coming from Lightroom 2.5?
    I did a three image 16x20 and I didn't notice the difference - partly because they were three differenct images in color. I will try two color images from the same file tomorrow.
    Any thoughts? I haven't found a possible setting problem that would have been applied between the operations.
    Rich

    Paulo,
    Thanks. I was ready to believe the monitor idea but I still have some reservations.
    I don't doubt what you said about the pixels (sounds correct to me).
    Why?
    I tried another monitor and the images I attached also look like the top one is darker (vertically).
    Also, the same is true if I scrolled the images. It seems to me that I should see a difference as I slowly scroll the image vertically. I didn't see a difference.
    Read on please.
    At any rate (I long for a CRT - my 21" crapped out last year), I am using  two SAMSUNG screens, the
    one attached to the main computer is the Syncmaster T220 - a well rated
    monitor; as far as I knew , read and had friends who recommended them.
    The other I just tried is attached to the second computer a couple of feet away. It is the syncMaster T240HD. 
    So, if it is an LCD monitor problem, it is with both and the same
    company. I would think I would have read some bad reports about these
    LCDs?
    Also, wouldn't the color images also be different when presented the same way? (they aren't).
    However, I went back to the original T220 LCD display and moved an image in to a blank one as before, then did the control J to copy the layer, and the images we different again. But, I zoomed in more than usual and scrolled the images and they were lighter at the bottom of the screen and darker at the top of the screen!!!!!!
    That is good news and bad news! $$$$$$
    If it is the monitor problem, then both images should print as the same.????
    Secondly, the display (LCD) attached to the machine at Sams showed the same difference between the two images. AND, I recall that the display is also a Samsung (I will check that tomorrow).
    What a bunch of coincidences! I guess I have to search the web for some Samsung answers? and contact the company?
    I want to explore as much on my end as possible.
    Hunt and another suggested the Control-J to avoid the problem by copying the layer. That didn't work either.
    I suppose I could tweak one of the images after bringing them in but I don't know how (I clicked the layer and I wasn't able to do anything - like lighten that image).
    Again, thanks for the help. I think the question maybe answered.
    I will send the screen capture shortly.
    Rich

  • How to Convert FLIR Gray Scale Image to a Temperatur​e Map in NI VBAI

    I have been working with a FLIR A315 Infra-Red camera and NI's VBAI software.  I need to determine the presence and continuity of a hot mastic foam that has been injected into the hollow bulb of a rubber weatherstrip seal in 4 adjacent locations that flow together inside the weatherstrip bulb to form a continuous foamed mastic plug.
    So far, I have been able to trigger image acquistions in VBAI from a FLIR IR camera by monitoring an Allen-Bradley PLC's status bit.   The communication with the FLIR A315 camera is via the IMAQdx GigE driver.  However, I haven't figured out how to detemine the temperatures from the gray scale images I receive from the FLIR camera.  I wonder if someone could give me some pointers on how to do this.
    I have attached some images below to illustrate what I am working with and how far I've gotten.
    iPhone_Photo.jpg - shows a photograph of the weatherstrip section that the FLIR IR camera is "looking" at.
    FLIR_IR_Monitor.jpg - a screen capture of a FLIR IR monitor utility that shows temperatures measured at a number of points and areas (showing it can be done)
    NI_VBAI.jpg - part of my VBAI 2010 project which shows the image I've acquired from the FLIR A315 IR Camera
    So, I am part of the way there, but so far have not found a way to map the gray scale image that VBAI is acquiring from the FLIR IR camera into a heat map from which I can determine temperatures - and would appreciate some help on how to do this.
    Kind regards,
    Nick
    Solved!
    Go to Solution.
    Attachments:
    iPhone_Photo.jpg ‏239 KB
    FLIR_IR_Monitor.jpg ‏113 KB
    NI_VBAI.jpg ‏205 KB

    Hello,
    Image provided by FLIR camera are unsigned 16bit.
    Depending on the FLIR temperature scale you selected (10mK or 100mK), you will have to divide by a 10 or 100 factor to get K values. Don't select radiometric output.
    So if your object is cold, the population of the histogram of your image will be on the left part of it and if the object is hot, the population of the histogram will be on the right part.
    If you want your temperature values in Celcius, just add 273,15 to the Kelvin Value.
    Then you can add a color palette in VBAI (FLIR iron is available)
    Hope this helps

  • Gray filter too dark. How to enlight the gray images?

    I�m creating a set of toolbar buttons and I want to acquire that disabled gray effect ...
    in my current code, I load two images for each button - an active one and the gray one...
    recently I heard about the GrayFilter class and I tryied to use it with my implementation..
    the problem is: the GrayFilter generated gray image is too dark..
    how can I modify the gray scale used in the GrayFilter?

    Select --> Color Range or do some magic with Calculations to create a selection based on luminance.
    Mylenium

  • Can aperture 3 convert a gray scale photo into a line drawing?

    can aperture 3 convert a gray scale photo into a line drawing?

    I have a B.F.A. degree in painting which educated me in the "history of art" with appreciation of the old masters. I agree with your statement that, "anyone mistaking photos converted to "line drawings, watercolors,or paintings" is simply ignorant" and that, "line art is to drawing what clip art is to painting."
    I appreciate your passion and love for keeping "visual creativity" true to its inherant nature. Expressing your views however, in regard to my question in this thread, is irrelevant to the question asked. I am not ignorant.  My question has nothing to do with the philosophy of art. You have no idea what project I have in mind for asking my original question. I suggest that perhaps you have chosen the wrong forum to express your views.  Sticking to the question asked, as the other participants have, has been most helpful to me and I appreciate their response.
    Thanks for your attention.

  • How to capture the values given in SSC1 transcation?

    Hello All,
    Can anyone suggest me, how to capture the values given in SSC1 transaction?

    Hello Clemens Li,
    Requirement: Integration of SAP Appointment Calendar with Gmail Calendar
    If I create an appointment in SSC1 transaction, it will appear in SAP Appointment calendar. The same thing should get updated in Gmail calendar of SAP user and also in the guest Gmail calendar if exists in appointment.
    So, I have to capture the input values given in SSC1 transaction while creating an appointment in SAP and try to export those values to web services using some function module.  Sending those values to web services completes my task.
    Means, if I create an appointment in SAP, at the same time, the values which I gave must get exported to some object. So that I can send them to web services.
    But my actual problem is with capturing the input values given to SSC1 transaction.
    How can I get those values out to some internal table?
    Another one is, I did not found any BADI to enhance SSC1 transaction so that I can include my code there.
    If you know any enhancements in SSC1, please let me know.
    If you want any more clarification, please let me know.
    Thanks for the response
    DNR Varma

  • How to capture the Logout time in xMII

    Hi Friends,
    How to capture the logout time in xMII when the user clicks on Logout link
    Thanks

    Srikanth,
    It would be better to use a database table(s) to store your audit trail information than an xml file, which could grow beyond a manageable size and then require housekeeping efforts and file rolling, etc.  It would also be much easier to query user related information out of the logs, pareto charts for failed vs. successful login attempts, etc. if the data was stored in a database.
    Have you considered modifying the Relogin.jsp page link in the portal's sub-menu bar?  How about making your own version of this web page and changing the link pointer?  Keep in mind that whatever result you come up with here will need a significant update for NetWeaver UME compatibility in version 12.0.
    Regards,
    Jeremy

  • How to capture the current info in the top-of-page event in Reuse block dis

    How to capture the current info in the top-of-page event in Reuse block dis

    Hi Geetha,
         If you don't have any information to pass the Heading Block, then why you are using this event ?
         please comment/ remove that TOP_OF_PAGE code. and use subtotal code in field catalog block.
          you can use below code for subtotal. 
          FORM field_catalog .
                    gs_fcat-do_sum = &2.
              fcat : 'WRBTR' '15' 'X' ' ' ' ' 'WRBTR' 'Amount',
           ENDFORM.
           Regards,
           Kunjan

  • How to capture the data entered in a textfield in a JTable

    How to capture the data entered in a textfield present in a cell of a textfield or how to add listener to this textfield

    A sample of my code is:
              model = new GridDisplayTableModel(gridDisp,columnName,getRows(),getCols());
              final ComboRenderer cRenderer = new ComboRenderer();
              final TextFieldRenderer tRenderer = new TextFieldRenderer();
              combo.addItem("one");
              combo.addItem("two");
              combo.addItem("three");
              final JTextField textfield = new JTextField();
              final DefaultCellEditor cmbEditor = new DefaultCellEditor(combo);
         //     final JEnterDataCellEditor textEditor = new JEnterDataCellEditor(12);
              final DefaultCellEditor textEditor = new DefaultCellEditor(textfield);
              rm = new RowEditorModel();
              table = new JTable(model){
         public TableCellRenderer getCellRenderer(int row, int column) {
              int posx = 0;
                   int posy = 0;
                   TableCellRenderer renderer = null;
         for(int l=0;l<getDataVec().size();l++)
                   beanObj =(Helperbean)dataVec.elementAt(l);
                   posx = beanObj.getPosx();
                   posy = beanObj.getPosy();
                   if(row==posx && column==posy)
                             if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("textfield"))
                                  rm.addEditorForRow(row,textEditor);
                                  renderer = tRenderer;
                             else if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("combo"))
                                  rm.addEditorForRow(row,cmbEditor);
                                  renderer = cRenderer;
                             break;
                        renderer = super.getCellRenderer(row, column);
              //     System.out.println("getEditor"+rm.getEditor(1));
         return renderer;
    public TableCellEditor getCellEditor(int row, int col) {   
         int posx = 0;
         int posy = 0;
         TableCellEditor tmpEditor = null;
    for(int l=0;l<getDataVec().size();l++)
         beanObj =(Helperbean)dataVec.elementAt(l);
         posx = beanObj.getPosx();
         posy = beanObj.getPosy();
         if(row==posx && col==posy)
                   if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("textfield"))
                        System.out.println("celleditorval "+textEditor.getCellEditorValue());
                        tmpEditor = textEditor;
                   else if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("combo"))
                        tmpEditor = cmbEditor;
                   break;
              tmpEditor = super.getCellEditor(row, col);
    return tmpEditor;
    public boolean isCellEditable(int row,int col){
         boolean isEditable = false;
         int posx = 0;
         int posy = 0;
    for(int l=0;l<getDataVec().size();l++)
         beanObj =(Helperbean)dataVec.elementAt(l);
         posx = beanObj.getPosx();
         posy = beanObj.getPosy();
         if(row==posx && col==posy)
              if(beanObj.getModeofDisplay() != null )     
                        isEditable = true;     
                   else
                        isEditable = false;     
                   break;
         isEditable = false;
         return isEditable;
    public void changeSelection(final int row, final int column, boolean toggle, boolean extend) {
         super.changeSelection(row, column, toggle, extend);
         //my attempt to avoid editCellAt from being called twice in a row
         if (getModel().isCellEditable(row, column) && !(isEditing() && getEditingRow() == row && getEditingColumn() == column))
              if (editCellAt(row, column)) {
                   getEditorComponent().requestFocus();
         // Select the text when the cell starts editing
    public boolean editCellAt(int row, int column) {       
         boolean result = super.editCellAt(row, column);
         final Component editor = getEditorComponent();
         if (editor != null && editor instanceof JTextField) {           
              SwingUtilities.invokeLater(new Runnable() {               
                   public void run() {                   
                        ((JTextField)editor).selectAll();
              return result;
         public boolean hasFocus()
              Component editorComponent = getEditorComponent();
              // Try to install the editor
              int anchorRow = getSelectionModel().getAnchorSelectionIndex();
              int anchorColumn = getColumnModel().getSelectionModel().
              getAnchorSelectionIndex();
              if (anchorRow != -1 && anchorColumn != -1 && !isEditing())
              if ((this.getSelectedRow() == anchorRow) && (this.getSelectedColumn() == anchorColumn))
              if (!editCellAt(anchorRow, anchorColumn)) {}
              return super.hasFocus();
         public void valueChanged(ListSelectionEvent e)
              super.valueChanged(e);
              if ((this.getSelectedRow() == 2) && (this.getSelectedColumn() == 3))
                   DefaultFocusManager focusManager = new DefaultFocusManager();
                   focusManager.focusNextComponent(this);
                   model.fireTableStructureChanged();
         

  • How to Capture the Objects in Object Library in Openscript tool?

    Hi All,
    I am new to OATS and i was trying to explore the Object Library in Opencript tool.
    Can anyone please advise me how to capture the Oracle forms Object in Object Library or Object Repository using OpenScript Tool?
    It would be grateful,If you can provide me the step to follow for the above.
    Thanks
    Ajith

    Hi Ajith,
    Create one Object Library. In OpenScript click File -> New -> Select Object Library under Script Assets.
    Then mention name of your library and save it.
    Add this library to script assets of your script. Select Script -> Script Properties... -> Script Assets -> Object Library -> Add(button) -> select your Object Library.
    Then save  your script and start recording. After recording you can see xpath of all objects you interacted with during your script recording.
    If you want to apply this to your script, select Script -> Apply Object Library.. -> then select your Object Library. If you want to revert it, then select Script --> Revert All Navigation To Recorded
    Hope this will help you...
    Regards,
    Deepu M

  • How to capture the parameter in webdynpro application?

    Hi ,
    We have a requirement like this :
    the scenario is :
    user will get a mail to  inbox(here mail is coming from SAP Workflow) saying that :"proposal is waiting for your approval".for details please click on the below link:
    once user clicks on the link it has to open up the webdynpro application and has to display the details of the particular proposal no.
    how to pass the proposal no to the webdynpro application URL and how to capture the proposalno in webdynpro java?
    Thanks in advance.
    Regards,
    Pavani

    From the workflow when you create the link, also add the proposal number as an url parameter.
    For example if the url for requesting WD application is <WD_URL>, then URL with parameter would be
    <WD_URL>?PROPOSAL_NO=<actual_proposal_number>
    In the webdynpro, you can access this parameter with the following piece of code(ideally in wdDoInit of component controller).
    String proposalNo = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("PROPOSAL_NO");
    Regards
    kk..

  • How to capture the event in ALV grid display?

    Hi experts,
      How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.
    regards,
    Arul Jothi.

    Hi Arul,
    Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)
    Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..
    If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • How to capture the changes in ppoma_crm transaction

    Hello All,
    We have a requirement that if we add either a BP or an User to a positon in ppoma_crm transaction then we should be able to update these entries in our z table.
    If it is a BP then we should look for the User mapped to it and update the z table else we should directly update the z tables with user name.
    But we are facing an issue in capturing the values that have been updated.
    Can anyone tell me how to capture the new values in the BADI for the ppoma_crm transaction ?
    Regards
    Sohit

    Did any guys here face the requirement? If replicating all the columns some of which may change frequently but are not important to the other sites, then i wouldn't replicate these changes in order to improve the performance. Thanks for your help!

  • How to stop the gray wheel from spinning after logging out

    how to stop the gray wheel from spinning after logging out?

    Frank ...
    Make sure to quit all open applications before logging out.
    Your proflie indicates your Mac has v10.7.1 installed.
    If that is the case, updating your system software will help as far as functionaly as well as security.
    Install the OS X Lion Update 10.7.5 (Client Combo)
    Then restart your Mac.
    message edited by:  cs

  • How to capture the first execution of a report

    Hi,
    I am executing a report in background. The first time the report is executed I have to do a different processing. After the 1st execution I have to different processing.
    Someone please tell me how to capture the 1st execution of a report. Is there a system variable ?
    Appreciate your <removed by moderator> response.
    Thanks,
    Dikshitha G
    Edited by: Thomas Zloch on May 12, 2011 11:36 AM

    Keshav.T wrote:
    Are you going to create a Z table for this ???? ... Is there nobody to advice you in your firm ???
    Hello Keshav,
    A couple of years ago i would have recommended using the INDX table, but it has got it's demerits.
    Maintenance of Z-table is easier than the INDX table. Say there is some error in the program & you want to override the flag. Will it be easier to do so in the INDX table or via SM30 for the Z-Table?
    As a matter-of-fact i will recommend using the solution provided by Florian the TVARVC technique.
    1. Create a parameter(specific to your program) & transport it.(See the trxn STVARV)
    2. In your program check the value of this param & set it accordingly.
    Using TVARVC you will 2 birds with one stone:
    1. You don't have to create a custom table.
    2. Easy maintenance via STVARV trxn.
    Hope you get the point!
    Cheers,
    Suhas
    PS: In our system we have a Z-table designed specifically for this particular purpose. All the programs having this kind of requirement refer to this table.

Maybe you are looking for

  • Problem passing parameter to Interactive report

    Morning! I'm having problems when passing a parameter value to a report - I'm using IR_<column_name>, which works fine most of the time, except when the value I'm passing has a leading '#' ie. '# No People' - I have tried encoding it ie. '&#36. No Pe

  • How to prepare a PDF with pass4press settings in Illustrator CC

    I am re-setting as advert for a client who has asked that the artwork be sent to the publisher as; QUOTE - "Artwork to be supplied in high-resolution PDF. All images within the PDF must be 300dpi images formatted to PPA Pass4press Version 9" I can do

  • PC Quicken data to MacBook Air? (and Photoshop...)

    A long time PC friend is dreading switch to Air due to much old Quicken (and Photoshop) data. Is it possible to import PC Quicken data onto a MB Air using the Mac version of Quicken? If so, does anyone have links to a 'help' resource for this purpose

  • How to get FF to remember bookmark folders

    how do I make FF 'remember'the last used folder in bookmarks. Say I book mark a film into movies folder and then want to bookmark another film, how can i get the folder called movies to open again until changed

  • New to Flash -- tutorial help pls!

    Hi: Working with the Flash Developer Center tutorial http://www.adobe.com/devnet/flash/articles/atv_flcs4_demos.html I have Flash CS3 professional, and downloaded a couple of the zip sample files, fla.  However, an error message says "Unexpected File