Displaying images at the same position in gdviewer

Discussions about document viewing.
Post Reply
munteanuramiro
Posts: 3
Joined: Tue Sep 18, 2007 2:01 pm
Contact:

Displaying images at the same position in gdviewer

Post by munteanuramiro » Wed Oct 24, 2007 10:11 am

I want to use gdviewer for display a live video and with every frame of the live video i displayed it with the function displayfromhbitmap in the gdviewer control. The problem appears when i do a little zoom on the gdviewer control and then i try to do a pan, to move from the center of the image, but then the new frame is displayed with displayfromhbitmap which centers again the image on gdviewer and i loose the pan position this way. Is there any way to use displayfromhbitmap or other function without centering the image on the control ? Or other solution for this problem. :?:

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Wed Oct 24, 2007 10:19 am

Hi,

You can change the ImageAlignment property:

https://www.gdpicture.com/references/gdv ... nment.html
Can be:
ImagePositionMiddleLeft = 0
ImagePositionMiddleRight = 1
ImagePositionMiddleCenter = 2
ImagePositionTopLeft = 4
ImagePositionTopRight = 5
ImagePositionTopCenter = 6
ImagePositionBottomLeft = 7
ImagePositionBottomRight = 8
ImagePositionBottomCenter = 9

Regards,

Loïc

munteanuramiro
Posts: 3
Joined: Tue Sep 18, 2007 2:01 pm
Contact:

about the same problem

Post by munteanuramiro » Thu Oct 25, 2007 12:17 pm

Sorry i think that ImageAlignment doesn't work for my problem. ImageAlignment has only 9 positions for the image, but sometimes pan can put the image between this image alignment limits so it will not be the same position. 8)

Regards,
Ramiro Munteanu

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Thu Oct 25, 2007 10:58 pm

Ok,

I will add a KeepImagePosition property for the next release (end of this month). I think it will resolve your problem.

Regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest