Image Viewer CP Gold SDK ActiveX Control ReferenceMethods Crop2HBITMAP 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 ParameterReturn Valuereturn bitmap handle Example Visual Basic SyntaxImageViewer1.FileName="c:\test1.jpg"hbitmap = ImageViewer1.Crop2HBITMAP()