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

Draw line and determining displayed image size

Support for GdImageBox OCX and GdImageBox Pro ActiveX/SDK.

Draw line and determining displayed image size

Postby kadalz » Tue Mar 17, 2009 8:36 am

Hi,

Here are my issues:

1. I found a thread in this forum about drawing a line using Line object inside Imagebox container. Can I draw line(s) using Line object (or any other methods) inside the Imagebox (not the ImageBoxCnt)? I've tried but the line always show behind the ImageBox object.

2. I want to put a picture box control at the top of the displayed image. The picturebox must have the exact same size as the displayed image (not the size of the Imagebox control). I'm able to determine the Top-Left coordinate (using .GetImageLeft and .GetImageTop methods), but when I try to determine the width and height of the displayed image (using the .GetDisplayedArea method), it always shows bigger size. Could you tell me, what I'm missing here?

Regards,

:D
Stanley
kadalz
 
Posts: 5
Joined: Sun Mar 01, 2009 12:42 pm

Re: Draw line and determining displayed image size

Postby kadalz » Tue Mar 17, 2009 8:54 am

Oh btw, I'm using VB6. :D

Regards,
kadalz
 
Posts: 5
Joined: Sun Mar 01, 2009 12:42 pm

Re: Draw line and determining displayed image size

Postby Loïc » Wed Mar 18, 2009 12:37 pm

Hi,

1 - Not, it is impossible.

2 -

Code: Select all
Picture1.Left = ImageBox1.GetImageLeft * Screen.TwipsPerPixelX
Picture1.Top = ImageBox1.GetImageTop * Screen.TwipsPerPixelX
Picture1.Width = ImageBox1.ImageWidth * ImageBox1.Zoom * Screen.TwipsPerPixelX
Picture1.Height = ImageBox1.ImageHeight * ImageBox1.Zoom * Screen.TwipsPerPixelY



Best 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 GdImageBox [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest