Image Viewer CP ActiveX Control

Crop2HBITMAP

 

Crop the image to a rectangle containing the selected region and return HBITMAP handle.

Public Function Crop2HBITMAP(
      ) as Boolean

 

No Parameter


Return Value
return bitmap handle



Example

   

Visual Basic Syntax
ImageViewer1.FileName="c:\test1.jpg"
hbitmap = ImageViewer1.Crop2HBITMAP()