Image Viewer CP ActiveX Control

Crop2PictureBox

 

Crop the image to a rectangle containing the selected region and return VB Picture object.

Public Function Crop2PictureBox(
       ) as  stdole.Picture

 

No Parameter

Return Value
Return stdole.Picture



Example

   

Visual Basic Syntax
ImageViewer1.FileName="c:\test1.jpg"
Picture1.Picture= ImageViewer1.Crop2PictureBox