Accusoft ImagXpress 12
hDIB Property
See Also  Example  Send comments on this topic.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : hDIB Property

Glossary Item Box

Description

Gets and sets an image from a device independent bitmap.

Property Type

Read-write property

Syntax

Visual Basic
Public Property hDIB As Long

Return Type

The handle to a DIB.

Remarks

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.

Example

hDIB and CopyDib Example (Visual Basic)Copy Code
ImagXpress2.hDIB=ImagXpress1.CopyDIB

See Also

©2013. Accusoft Corporation. All Rights Reserved.