AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : hDIB Property |
Visual Basic |
---|
Public Property hDIB As Long |
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.
ImagXpress2.hDIB=ImagXpress1.CopyDIB