How to get co-ordinates of images?

i open a image in jlable . i want when i click on image it give me the co-ordinate where i am click according to image not screen.
give me image co-ordinate not screen co-ordinate?

Look in the API under MouseEvent. Once you add a MouseListener, you'll not believe how simple it actually is.

Similar Messages

  • How to get name of selected image?

    Hello ,
    I want the name of selected image.I have PDEImage and PDEElement of selected image.
    How to get the name of selected image?is it possible to get name of image on document?
    please,help me.

    That information is not required to be stored in the PDF.  It present, it could be present in the XMP-based metadata of the image.
    Consult ISO 32000-1, ISO 16684-1 and the XMP specification for details.

  • How to get rid of Quicktime "image" on top right of converted file

    I just converted a WMV file to both MOV and MP4 formats.  There is a Quicktime graphic on the top right now that looks like a circular button with the play icon in it.  I have a fully licensed version of Quicktime Pro v.7.  How can I get rid of that image (which comes across kind of like a watermark)?

    If you're converting WMV, you're probably using Flip4Mac as part of the QuickTime conversion process. The graphic is likely a Flip4Mac watermark. See: https://discussions.apple.com/thread/6418932.

  • How to get a single particle image after particle analysis in vision development toolkit

    Hi all,
    After a long time I am here again to find out some solutions regarding image processing. I have an RGB image with a number of particles in it. For processing I have made it binary image and then particle analysis function is used. It is showing all the required measurements of each particles. But as well as I also need the image of each particle individually, that may be in an array so that I can get those one by one using for loop. Is it possible to do? I have no idea how to do it. Please help.

    Hello,
    Normal recovery which you are doing, examines the content
    of the environment's log files and uses this information
    to ensure that your database files are consistent relative
    to the information contained in the log files. Normal recovery
    starts with any logs used by any transactions active at the
    time of the last checkpoint, and examines all logs from then
    to the current logs. Normal recovery also recreates your
    environment's region files. This has the desired effect of
    clearing any unreleased locks that your application may have
    held at the time of an unclean application shutdown.
    You can turn on verbose error messaging as that should
    provide additional information on what is causing the
    Invalid argument error.
    For that take a look at:
    DB_ENV->set_errfile
    http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_set_errfile.html
    Please post any additional messaging from that.
    It that sheds no light on the problem, please post a
    small, stand-alone test case which reproduces the problem
    and I can take a further look.
    Thanks,
    Sandra

  • How to get point ordinates in oracle spatial with oo4o and VC++

    Hi,
    I need some help baddly.Would someone help me?
    Now I need to get the point ordinates in a table called cities.I use oo4o C++ class library and VC++ 6.0 . In the table, the column name of SDO_GEOMETRY object
    type is "goem". For the reason that the table is created for a point layer, all the point ordinates are stored in the SDO_POINT.
    I read the ordinates in my program as below. But every time the final result of x,y,z are all be 0.000000000 . Although I checked it many times, I still couldn't found why.
    So could some experts tell me the reason or show me how to do that?
    Thanks in advanced.
    ODatabase odb("", "scott", "tiger");
    ODynaset odyn(odb, "SELECT * FROM CITIES");
    if (odyn.IsOpen())
    odyn.MoveFirst();
    OObject geometry;
    oresult ores = odyn.GetFieldValue("geom", &geometry);
    if(ores==OCSUCCESS)
    OObject sdopoint;
    const char* attrname3=geometry.GetAttrName(3);
         geometry.GetAttrValue(attrname3, &sdopoint);
         const char* ittypename=sdopoint.GetTypeName();     
         int itnumber=sdopoint.GetCount();
         int attrtype=sdopoint.GetAttrType(1);
         const char* attrnameX=sdopoint.GetAttrName(1);
    const char* attrnameY=sdopoint.GetAttrName(2);
         const char* attrnameZ=sdopoint.GetAttrName(3);
         double *x;
         double *y;
         double *z;
         sdopoint.GetAttrValue(attrnameX,x);
         sdopoint.GetAttrValue(attrnameY,y);
         sdopoint.GetAttrValue(attrnameZ,z);
    }

    Yes. I have tried your code and got the same result.
    And I also tried to use SQL to get the result.But it
    also failed.
    I am intrested in this problem too.
    Could some oo4o experts help me too?
    jeff

  • How to get crisp clear vector images into motion2

    I am new to this forum and love it.
    My question to all you smart people is when I use illustrator for all my logos for companies. How do I get them imported into my motion project. I have heard of different ways, but none have done the trick. I see logos on samples that look clear and like vectors but when I place them they get really blurry. Also when I place the logo as a large image and scale it down, it looks horific.
    Any help on this subject would be greatly appreciated. I have pulled enough hair out on this project. Thanks a lot.

    After checking my resolution, it is set at FULL, so let me explain my equipment. I am using a brand new G5, a digital output monitor, and OS X 10.4.6.
    Do you guys think that I am just expecting too much from Motion, to make the image clear or should it look just as clear as a vector image in Illustrator.
    Should I adjust any picture resolutions before importing a high resolution image.
    Does anyone have a quick sample of Motion of a logo that they imported in motion and maybe that way I can compare it with mine, or give me the exact directions of how you smart people export and import logos into Motion. Thanks a lot, and I am destine to get my logos clear as I can.

  • How to get UIDRef of placed image item.

    Hi All,
    I am making a plugin for InDesign CS3 and CS4. And I have a issue how to het UIDRef of  pageitem. Senerio is as follows,
    1. Place a image in non selected frame on Document.
    2. Place a image from drag and drop in InDesign Document.
    After placing the image on document, I need the UIDRef of this page item.
    I do the following for achieving it.
    1. Mae the DocObserver.
    2. When a page item is created, I get a call in DocObserver::Update() function for kNewPageItemCmdBoss and kAddToHierarchyCmdBoss.
    3. But I am not able to get UIDRef of PageItem by  this.
    If any one have any idea of it, then please let me know.
    Regards,
    Jitendra Kumar

    Jitendra:
       While not specifically addressing this problem, I have obtained the UID (and then derived the UIDRef) of an image by getting the hierarchy interface of the container and then getting the child.  This is a snippet of the code:
        UIDRef ItemRef = UIDRef(db, ItemUID);  //  ItemUID & db (IDataBase *) passed into function; db
        InterfacePtr<IHierarchy> iHierarchy(ItemRef, UseDefaultIID());
           if (iHierarchy != nil)
              if(iHierarchy -> GetChildCount() > 0)
                 UID imageuid = iHierarchy -> GetChildUID(0);
    HTH.
    R,
    John

  • How to get Handle for a Image Control in WPF

     I have to read an image from a camera dll function.
     the function takes  a handle of the UI element to display the images.
    I was able to get the image on the Windows picturebox by using its handle property.
    But when i try to do the same thing in WPF, i found problem to do so, as WPF has a single handle
    for all controls.
    if i pass that handle  it will display the image on the Window itself.
    but i want it on Image box.
    so my question is how can i assign the WPF handle i have to the Image box or how can i get the
    handle of the Image box.
    I am aware that controls dont have handles in WPF.
    but is it not possible to get the handle using interop?
    please help me its really urgent.nishant singh,Bangalore

    Hi,
    You can try this:
    HwndSource hwndSource = PresentationSource.FromVisual(YourImageControl) as HwndSource;  
    if (hwndSource != null)  
        handle = hwndSource.Handle;  
    Let me know if it works !
    HTH
    ThomasThomas Lebrun [MVP] - WPF/LINQ: http://blog.developpeur.org/tom - http://morpheus.developpez.com

  • How to get Byte[] from an image object?

    This are the codes that i have tried, it did an resized.jpg but the file doesnt consist of the image. My program will stream the .jpg file using fileconnection then i resize the image and created the new image using image.createRGBImage(). Lastly, i need to save the resized image as a jpeg file but i failed to do so..
    byte[] jpegData = ImageByteConverter.getByteArray(image);
    OutputStream out = fconn.openOutputStream();
    out.write(jpegData,0,jpegData.length);
    * This method converts a int-array, containing all RGB values for the image, to
    * a byte-array containing all RGB values.
    public static byte[] getByteArray(Image image){
    // Allocate new memory for the int-array and fill the array in the getRGB method.
    int[]raw = new int[image.getWidth() * image.getHeight()];
    image.getRGB(raw, 0, image.getWidth(), 0, 0, image.getWidth(), image.getHeight());
    byte[]rawByte = new byte[image.getWidth() * image.getHeight() * 4];// ARGB
    int a, r, g, b;
    int n = 0;
    // loop through the int-array and get the 4 bytes of each value to the byte-array.
    // since java isn't supporting unsigned bytes we need to store the ARGB values from -128 to 127
    // where -128 = 128, -127 = 129 and -1 = 255
    for(int i=0; i<raw.length; i++){
    // Right-shift the values to fit in a byte.
    int ARGB = raw;
    a = (ARGB & 0xFF000000) >> 24;
    r = (ARGB & 0xFF0000) >> 16;
    g = (ARGB & 0xFF00) >> 8;
    b = (ARGB & 0xFF);
    rawByte[n] = (byte)b;
    rawByte[n+1] = (byte)g;
    rawByte[n+2] = (byte)r;
    rawByte[n+3] = (byte)a;
    n+=4;
    raw=null;
    return rawByte;
    Thanks in advance.

    you can do follwoing but not sure whether thats what you want.
    Also not sure whether its the best way.
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    ImageIO.write(image, "PNG",baos);
    InputStream in = new ByteArrayInputStream(baos.toByteArray());

  • How to get the whole map image after zoom in?

    Hi,
    I use mapviewer API to generate map images and put them in JSP as well as in Java Applet. I called the method getGeneratedImage(). After I using the methods zoomIn() or zoomOut(), I got a new map image. But the size is fixed, so after zoom in I can only see a part of the whole map. I would like to use scrollbar to see other part of the map after zoom in.
    How can I solve this problem? I have the images as predefinied themes saved in database with MBR information.
    Thanks in advance.

    Hi,
    For the map request in MapViewer you may define the data area that you want to display, as well as the device size (width and height). The result is a java Image with width and height sizes. You can draw this image on a canvas with scroll bars, and if the size of the canvas is smaller than the image size, then you should see the scroll bars. But you have to code that. MapViewer will just return an Image with the specified size.
    The zoom in/out options just change the data area, but keeps the device size. Therefore you should use the API methods to set the data area (setBox or setCenterAndSize) and to set the device size (setDeviceSize), in order to control the size of your resulted image, and then draw it on your canvas with scroll bars.
    Regards.

  • IPhone: How to get the original photo image with  Picker

    Hi!
    I'm trying to pick and send (via HTTP) the original image taken by the camera, the 1,600 x 1,2000 image that's available in iPhoto after syncing.
    As far as I gathered, the UIImage doesn't help me here, since it's scaled down to 640x480, probably to safe memory. But one should supposedly be able to access the underlying CIImage.
    Here's what I'm doing right now:
    I'm setting up an ImagePickerController in my
    - (void)viewDidLoad
    imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.delegate = self;
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    [self refreshView:self];
    and process the picked image with
    - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingImage:(UIImage )image editingInfo:(NSDictionary )editingInfo
    CGImageRef imgRef = image.CGImage;
    CGFloat owidth = CGImageGetWidth(imgRef);
    CGFloat oheight = CGImageGetHeight(imgRef);
    NSLog(@"Original size = %f %f",owidth,oheight);
    NSData imageData = [NSData dataWithData: UIImagePNGRepresentation(image)];//(image, 1.0)
    However, I still get the following output:
    2008-07-25 11:44:58.543 myApplication[1564:20b] Original size = 640.000000 480.000000
    Obviously still scaled down - but there must be a way to access the original.
    What am I doing wrong?

    Yes, I'm trying on the iPhone, as the camera is unavailable on the simulator.
    Here is the code I'm using:
    // In my main code, to initialise the picker
    UIImagePickerController *picker;
    // Check if camera is available
    if ( ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] )
    UIAlertView *alertView = [[UIAlertView alloc]
    initWithTitle:@"Can't access camera" message:@"The camera is unavailable!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil ];
    [alertView show];
    [alertView release];
    return;
    picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    picker.delegate = self;
    [_myView addSubview:picker.view];
    [_myView performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil waitUntilDone:NO];
    // The delegate methods
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
    NSLog( @"Image dimensions: %fx%f", image.size.width, image.size.height );
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    }

  • How to Get Photo Info in Image Capture?

    I use Image Capture to download photos from my Sony digital camera. Is there a way to view some of the information about each image (such as date, file number, etc.) from within Image Capture prior to downloading the images? It seems that I am forced to go back to quit Image Capture and go back to my camera and view the image information there and then go back to Image Capture.
    Thanks,
    Steve M.

    Hello,
    Setting view options in Image Capture:
    You can view images and other items from your digital camera in Image Capture. You can see the items in icon view or list view. In list view, you can see information about each item, such as the date it was created, its size, and the exposure. You can specify which information gets displayed.
    Connect your digital camera, and click Download Some.
    Choose View > as List.
    Control-click any column header, and choose the columns you want to display.
    Now, if you want, you can get iLife 06 and use iPhoto instead. You can set your default preferences so that either Image Capture or iPhoto launches when you connect your camera. But in iPhoto, once the images are downloaded to your Mac, you can see all the information in the bottom lefthand corner of the iPhoto window by simply selecting an image in your iPhoto library. It's so much more convenient then Image Capture. I use IC for scanning... that's about it.
    If you need further assistance post back... and.. with Image Capture open, you can always click Help in the Menu top of your screen. If you don't find an answer there, just post here.
    Carolyn

  • How to get full screen contact image in iOS 7.1

    There is lot of UI tweaks in 7.1, The main feature which was showcased on debut was full screen contact images. New update got rid of this or anyway around to get this feature

    It seems the apple have removed off this feature, they had a very thing show off in WWDC by Craig. Hope they bring it back in next update

  • How to get index of selected image??

    hi all
    I have a set of images that is displayed for the user and when he choose one image click on it and it will do sime action ... these images are stored in an array of images . How can i know the index of selected image ??

    i woul like to append an array of images in the screen and whenever i choose one of this images it link me to the class

  • How to get some version 3 images and metadata into version 4 catalog?

    I recently upgraded to version 4.
    Yesterday, I mistakenly opened up the version 3 icon and put in several hours worth of image work, metadata changes, and created a couple of collections.
    1. What will be the easiest way for me to update the changes to my version 4 catalog without undoing work that I have done in that from the last couple of weeks?
    Thanks!

    Backup your LR4 and LR3 catalogues, so you'd be able to get back to the current state if everything went wrong.
    Now in your LR3 catalogue, identify the images you've worked on (eg by selecting the collections or with a smart collection using Edit Date as a criterion). Select the affected images and do File > Export as Catalog. Save it onto your desktop.
    Open this exported catalogue in LR3 and review it. You may have collections you don't want, or other info. Then close it.
    In LR4, do a File > Import from another Catalog and bring in the catalogue from the desktop. Now, the danger is where you have changed the same image in LR4 in the last two weeks, and also changed them in LR3 in the last day or two. If so, then check the option to create new virtual copies and then resolve them one by one with Sync Metadata/Settings. If not, the imported catalogue will update pictures in your LR4 catalogue.
    Plenty of backup, and proceed slowly.
    John

Maybe you are looking for

  • Creative MP3 Audio Pack not in new produc

    Hey. I have bought a X-Fi Platinum. I have a question.. Why is it not <span class="mediumcopy">Creative MP3 Audio Pack in the drivers? When i want to record something, the alternati've is only wav and wma formats. Where is the Mp3? Grz // Patrick

  • LG Monitor and New Mac Pro -- Colours out of Whack

    I have an LG L226WT and a 20" Apple Cinema Display connected to a brand new Mac Pro. Both monitors (in the same configuration) were running on my old PowerMac G5 before. The Cinema Display works fine, colours are good, so is light etc. The LG first h

  • C:forEach and logic:iterate tags repeating elements of a collection

    I have an issue that makes absolutely no sense to me. Basically I am using struts, and I am returning a form that contains a List of customers. I am simply trying to iterate that list into a simple table for each customer. The end result will have ro

  • Can I use a prezzy card to purchase apps?

    Is it possible to use a 'prezzy card' to purchase apps?

  • Nokia n95 movie transfer???

    Hi! I'd be very happy if someone tell me how can i put som movies in my n95? Seems that it's not avaible so easy. If it try to transfer files from my computer to n95...Phone cant't read that kind of files?What should i do? SORRY my bad English, Finni