Gets and sets an image from a device independent bitmap.
Read-write property
Visual Basic |
---|
Public Property hDIB As Long |
The handle to a DIB.
Setting this property loads a DIB or Bitmap image. If the image is a Bitmap (HBITMAP), the image is converted to a DIB and stored as a DIB. ImagXpress will not take ownership of an HBITMAP no matter how the OwnDIB property is set.
If setting this property from another ImagXpress control, caution must be used and coordination must be ensured with the two ImagXpress's control's OwnDIB properties. One control should relinquish ownership of the DIB while the other takes control. A safer way would be to use the CopyDib method as the example below demonstrates.
hDIB and CopyDib Example (Visual Basic) | Copy Code |
---|---|
ImagXpress2.hDIB=ImagXpress1.CopyDIB |