Image Viewer CP ActiveX Control

DrawSelectionRect

 

Draw the selection rectangle.

Public Function DrawImage( _
   ByVal iLeft As Integer, _
   ByVal iTop As Integer, _
   ByVal iWidth As Integer, _
   ByVal iHeight As Integer
) 

 

Parameter

iLeft
   Specifies the logical left-coordinate of the starting point of the rectangle.

iTop
   Specifies the logical top-coordinate of the starting point of the rectangle.

iWidth
   the width of rectangle.

iHeight
   the height of rectangle.

Return Value

No return value.


Example

   

Visual Basic Syntax
ImageViewer1.FileName="c:\test1.jpg"
ImageViewer1.MouseTrackMode=1
ImageViewer1.DrawSelectionRect 0, 0, 100,100