Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Displaying images at the same position in gdviewer

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Displaying images at the same position in gdviewer

Postby 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. :?:
munteanuramiro
 
Posts: 3
Joined: Tue Sep 18, 2007 2:01 pm

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

Hi,

You can change the ImageAlignment property:

http://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
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4230
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

about the same problem

Postby 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
munteanuramiro
 
Posts: 3
Joined: Tue Sep 18, 2007 2:01 pm

Postby 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
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4230
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest