property of the mouse to the image control

In LV 8.5 I noticed that if you reset your image to the default control (using the menu drop-down), the position property of the mouse no longer works, it will always return 0.0 no matter where the mouse is in control.  You must destroy and recreate your image control to fix right here.

Perhaps this problem has been fixed in later versions of LV but I didn't know any documentation of the present.

Good afternoon Garvacious,.

When you say that the pop-up menu, I guess you want to tell the menu that is displayed if you right-click on the control.

I just tried this in LabVIEW 8.6.1.  My position of mouse cursor reads 0.0 when the mouse is over the control and -1, -1 when the mouse is not over the control.  It is a bug.  I have filed the appropriate internal documentation (Corrective Action Request #167102), while R & D is aware of the issue.

Thanks for letting us know about this behavior.  I'm sorry for any inconveniencce this bug you has done.

Tags: NI Software

Similar Questions

  • the protection of the KING region in the image control.

    I use the return on investment on an image rectangle.

    As you well know, the KING can move or change the size by clicking and moving the mouse.

    But when the user clicks a position outside the KING, the current KING will reset and disappeared from the image control.

    Is there an idea on how to get information about the event or property to protect the KING?

    (Region KING detects the manipulation of the mouse event).

    I just wanted to keep, move or translate the present KING with the handling of the mouse.

    My application must have an entry a consistent ROI in real time.

    labmaster.

    I just put extra code to check if the current KING is valid or not to cash the size of the table of the global rectangle.

    Invalid KING means no size of table or the same position of x 1 and x 2 (for y, the same thing.) of the rectangle.

    I know this isn't a perfect way to keep the KING, but it is OK for me virtually.

    labmaster

  • How could I possibly remove the default image in the image control?

    I use the image control and a bit of code to create a zoom on a picture effect. Everything works fine however I get a picture of labview when the Vi is loaded for the first time. I'm trying to get a blank area instead cause it looks like not really tidy!

    I have attached a picture and my code.

    Thanks for your help

    The image is configured to be the default value of "Photo". In other words: you must get rid of the default value. You can do this either by:

    (a) 'Image' of delete and recreate. Disadvantage: You have to re-create all the nodes property associated with this control.

    (b) load an image empty and select "data operations > use current default value.

    hope this helps,

    Norbert

  • mouse to zoom to the image control

    Hi all

    LabVIEW 2013 32-bit SP1

    Vision 2013 SP1 32 bit Wizard

    I read a bunch of images from a CameraLink camera and store it in a binary file.

    I then reset at the beginning of the file and read them.

    I have a loop that receives images one at a time and allows the user to select a specific image.

    I have an event loop in the while loop, to capture user events.

    I do a few filters, edge detection, overlays, etc.  (I don't think it's important to question, just to be thorough)

    Each image is displayed in a control from IMAQ Image.

    In case of a loop, I check for "mouse down" on the Image, and then I enter the coordinates where the user clicked.

    That works well.

    However, for this control when the user moves the mouse over the image, the mouse pointer changes under the microscope.

    When the user clicks on the image, I get the coordinates of the click, but the image is also "zoomed".

    I have initially display the image in the format 'fit to screen', and which seems to work very well.

    I would like to cut ownership of 'zoom on mouse click', but I can't find that in the list of properties.

    Any help will be appreciated.

    Thank you
    Jeff

    As soon as you create an indicator image tool KING before Panel Magnifier tool is selected.
    -You can make the current KING tool to the selection tool by creating the current "Tool KING" property node indicator image.

  • Property for the tab control node

    Hi, please explain the difference between the two operations explained below. For reference, I here enclose pictures of towing.

    Theoretically, according to the the help page in labview, when I have quand j' ai mis set 'allow the colors multi property' true, can I change the colors of the page in the tab control. But here, the program runs in reverse. When I set this property to false and run a program, a tab control object in front of Panel will change the color, I gave (first image with control of bule color tab). When set to true, the execution of a program, it is default (second image, control tab by default) color. I don't know how it goes. Thanks in advance

    You should get the reference of the tab Page and change the color individually if you want.

    -Set the multiple colors allow TRUE: https://zone.ni.com/reference/en-XX/help/371361J-01/lvprop/tabctrl_allow_multi_clrs/

    -Get each reference page:https://zone.ni.com/reference/en-XX/help/371361J-01/lvprop/pagesel_pgs/

    -Then choose color you want: https://zone.ni.com/reference/en-XX/help/371361J-01/lvprop/page_clrsfg_clr/

  • DisplayImageFile() does not change the dimensions of the image control

    Hello

    I put in an image with DisplayImageFile() control image + assigning to the attribute of control ATTR_FIT_MODE = VAL_SIZE_TO_IMAGE. The image size is larger, then the size of the control and I want the control to resize to the size of the image.

    It works fine except when I ask the dimensions of the control with GetCtrlAttribute (panel, control, ATTR_HEIGHT, & height), I get the original size (before calling DisplayImageFile())...

    It seems I missed something basic...

    Environment: LAB Windows CVI 2012, Windows 7

    Thanks in advance

    Ramy

    I don't know if you still experience this problem or not, but I came across this discussion now and wanted to point out that this could happen if your picture controls if it is covered by another control or is it hidden altogether (and there might be other similar situations that I can't think of right now).

    When this happens, the CVI runtime can pull the image directly on the image. Instead, he plans an asynchronous action that will redraw this section of the Panel from the back to the front (if it's just overlapped, not hidden). It is only in the later action that the image is applied to the control, and it is only then that the control is resized to fit the image. This may seem immediate to the casual observer, but, because it is asynchronous, you can't try to get new size immediately after calling DisplayImageFile, because the image is not yet in control at that moment.

    Ironically, this occurs only if the control has already been set to the image size at the time you call DisplayImageFile. If this isn't the case, then the new size is applied when you later change the mode made programmatically. Whereas if the adjustment mode has been already updated the image size, trying to programmatically set the same value of the image size has no effect and nothing happens then.

    If this is what is happening, one way around this would be to call ProcessDrawEvents or ProcessSystemEvents immediately after the call to DisplayImageFile. Unless the control or Panel has been hidden way explicit, which will require the drawing action will take place at this time, and you should then be able to get the new size of control at any time after that.

    Luis

  • Save picture in the image control

    Hello world

    The labview picture control has a context menu that includes the option so save the image. I found that it works very well in the development environment. If I click on it, a dialog box opens that allows me to choose where to save the image. However, once an exe file is built, the option will still be there but clicking on it seems to do nothing. Is this a known bug, or would it be a problem with my installation?

    I'm under Labview 2012 SP1.

    Thanks for the help,

    -Gary

    Hi Gary!

    I can confirm your observations. It's the behavior of my app, im using LabvIEW2013.

    Best regards

    Dan

  • Image not displayed does not correctly in the image control to the small zoom level

    I display a picture in an image control with a zoom factor of ~0.015 and it is displayed as shown in the picture 1.jpg.  When I Zoom in a little bit more to ~0.016 the image is displayed correctly, as shown in the picture-2.jpg.  The two images are attached.

    Why the image is displayed as a "gray band" in the first picture?  What should I do to have the picture displayed correctly at any zoom factor?  I use LV 2011 with the module for development of vision associated with Windows 7.

    Thank you

    Jonathan-LV


  • Resize the Bitmap image in the image control in flex3

    I'm loading an image in the image at the start control. Then I am a color transformation applying to this image and want to load this bitmap in flex3. That works, but automatic resizing does not work then. If I load another image, then AutoSize works well. Image control does not support resizing of the same bitmap object image?.

    Here is the part of the code:
    < mx:Image source = "{imgpath}" id = creationComplete = "imageCompleted ('MyImage'); "x ="20"y ="30"width ="365"height ="440"maintainAspectRatio = 'true '.
    / >
    private void applyColor(event:Event):void {}

    myBitmapDataObject = new BitmapData (myImage.height, true, myImage.width, 0x00CCCCCC);

    myBitmapDataObject.draw (myImage.content);
    myBitImage = new Bitmap (myBitmapDataObject);

    myBitmapDataObject.colorTransform (myBitmapDataObject.rect, new ColorTransform (1, 1, 1, 1, 39, 76, 135, 100));
    myImage.removeChildAt (0)
    myImage.load (myBitImage);


    }

    Any help is appreciated.

    You must create the BitmapData as the size of the original loaded image, not mx:Image height and width. Simply convert you / copy only a portion of the original size that matches the size of the Image. That is to say. whether you have a picture of 400 x 400 and your Image is 100 x 100. Your BitmapData is created at 100 x 100, NOT 400 x 400, you need to do. Everything simply because you resize the Image, does not mean that the underlying BitmapData is also resized.

    Also, in general, addChild would serve after removeChild, never used charge myself. Not sure if this is important.

  • Property of the image

    You can use images that you don't have digital publishing suite? There will be problems with Adobe or Apple to get the app in the app store?

    The app will be free for download, free of charge associated with it.

    This has nothing to do with Apple or Adobe, and is about the laws in your jurisdiction. I recommend you read the copyright in your area (if you try US http://www.copyright.gov/help/faq/faq-fairuse.html for a good introduction to reading).

    As a photographer, I'll add my $0.02 staff: If you have not spoken to the person who used the image to ask them permission, then do not use the image. It doesn't matter if your app is free.

    Neil

  • Property of the text control alpha...

    Hello world

    Can someone tell me why the alpha of Flex 2 text control attribute does not work? I hard coded the alpha value of 0, the text control, and it still shows the control as if the alpha attribute has not been defined. Is this a bug? Here is an example:

    ----------

    < mx:Text text = 'test' color = "#ffffff" fontSize = "24" width = "250" textAlign = "center" id = "bottomPart" height = "100%" alpha = "0" / >

    ----------

    Thanks for your time,

    -Tony

    You should always use an embedded font. No embedded fonts are used for performance reasons. Flash Player is not convert characters in these fonts to display the text. It is much faster. When you use an embedded font, the player uses the vector outlines to form characters. So they can be washed out, rotation, etc., but at the expense of speed.

  • How to get the property of the image on the width and height?

    Hi, all, I import image from the outside with the following method, but how to get the w3c_main.png on the width and height property? I will appreciate for your answer.

    var mcLoader = new MovieClipLoader()
    mcLoader.loadClip (" http://www.w3.org/Icons/w3c_main.png", image);

    or an image. LoadMovie (" http://www.w3.org/Icons/w3c_main.png")

    in the first case use the method onLoadInit() to a listener for your mcl before trying to access your target movieclip laborious and _height properties.

    in the second, use the preloader code to ensure your png loading is completed before attempting to access the _width and _height of your target movieclip properties image.

  • Beginning of the image control

    I'm learning the LV for the following steps.

    -Zoom in/out images

    -Animate (rotate, zoom in and out, move) pictures, etc.

    May I know where should I run, any good sample, thank you.

    I suggest you take a look at the examples (help > find examples... ) and image search.

    I think that the example of 'RobotArm.vi' is nice and "SolarSystem" and "Robot".

    Hope this helps

  • In the image control, how can I draw a small picture with a specific offset within a larger image?

    I could use the opposite of 'Get Image Subset.vi', as a 'Set Image Subset.vi'.

    The function of "draw flattened Pixmap" would work if it would let me define the position of the target instead of the position of the source.

    You can use "draw no flattened Pixmap.vi. Here is an example:

  • How to index multi-ROIs in the images?

    Dear everyone:

    I'd love to the multi-ROIs in the image of the index in order to extract the information inside each KING exactly. Can someone tell me how to do this?

    Thank you very much

    Each of the Kings will be displayed in the coverage area to a single KING read as a property of the image control node.  They are listed in the order they are created.

    There is a function of Vision that transforms this KING several unique contour in an array of single-edge Kings (Vision and Motion > commercial Vision > region of interest > IMAQ disassociate ROIs.vi)

Maybe you are looking for