ZoomArea Method

Example requests & Code samples for GdPicture Toolkits.
Post Reply
JessicaC
Posts: 1
Joined: Thu Nov 06, 2008 9:35 pm

ZoomArea Method

Post by JessicaC » Thu Nov 06, 2008 10:13 pm

Could you please post an example of the use of the ZoomArea method? I am having problems with syntax(most specifically for the nLeft, nTop, nWidth and nHeight) in order to get it to function correctly. Thank you for your time and assistance.

Jessica

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

Re: ZoomArea Method

Post by Loïc » Thu Nov 06, 2008 11:24 pm

Hi Jessica,

I give you a sample to catch the coordinates of the selection rectangle and to zoom on this area:

Code: Select all

Dim nLeft As Long, nTop As Long, nWidth As Long, nHeight As Long

Call GdViewer1.GetRectValues(nLeft, nTop, nWidth, nHeight)
Call GdViewer1.ZoomArea(nLeft, nTop, nWidth, nHeight)
Hope this helps.

Best regards,

Loïc Carrère

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests