Loading...

Pixel locations

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Pixel locations

Postby brm013 » Fri May 25, 2007 3:00 am

Hi,

I'm currently evaluating your Viewer component and I have a question.

I need to be able to get the mouse coordinates from the viewer relative to the image size. I.e if the image is 800 X 600 and the user zooms in I want to read the cursor position (where the user places the mouse) as being 343, 221 when the MouseMove event tells me the X, Y position is 0, 0. (based on zooming the top left to 343, 221.

Another way to put it is that no matter what zoom the user is at the cursor position should always tell me that the X, Y of a pixel at 343, 221 is 343, 221.

Currently the X, Y in the mousemove event references the topleft(0, 0) and bottomright(Width, Height) of the viewer.

I have also noticed that loading a large image will consume a lot of memory, is there thumbnailing a way of getting better performance/resource management than just loading the whole image?

Thanks
Brett
brm013
 
Posts: 4
Joined: Fri May 25, 2007 2:49 am

Postby brm013 » Fri May 25, 2007 3:21 am

Actually I just found out how to do it.

GetMouseX() and GetMouseY()

I still would like to know about getting better performance and resource management out of loading a large image

thanks
brm013
 
Posts: 4
Joined: Fri May 25, 2007 2:49 am

Postby Loïc » Fri May 25, 2007 9:44 am

Hi,

To decrease the used memory you can try to decrease the InterpolationMode propery value.

Else, you can use the GdPicturePro OCX to extract a thumbnail from the image and to display it into the gdviewer.

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby brm013 » Mon May 28, 2007 12:01 am

Is that a quick process to extract a thumbnail? If it is that might be a better solution for me as long as the thumbnail isn't too low res.

Thanks

Brett
brm013
 
Posts: 4
Joined: Fri May 25, 2007 2:49 am


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest