Displaying images at the same position in gdviewer
-
- Posts: 3
- Joined: Tue Sep 18, 2007 2:01 pm
- Contact:
Displaying images at the same position in gdviewer
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.
Hi,
You can change the ImageAlignment property:
https://www.gdpicture.com/references/gdv ... nment.html
Regards,
Loïc
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
-
- Posts: 3
- Joined: Tue Sep 18, 2007 2:01 pm
- Contact:
about the same problem
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.
Regards,
Ramiro Munteanu
Regards,
Ramiro Munteanu
Who is online
Users browsing this forum: No registered users and 1 guest