OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The type conversion functions for TDib let you access TDib in the most convenient manner for the operation you want to perform.
You can use the HANDLE conversion operator to access TDib through a HANDLE. To get a HANDLE from a TDib object, use the HANDLE operator with the TDib object as the parameter. The HANDLE operator is almost never explicitly invoked:
This code automatically invokes the HANDLE conversion operator to cast the TDib object to the correct type.
You can also convert a TDib object to three other bitmap types. You can use the following operators to convert a TDib to any one of three types: BITMAPINFO *, BITMAPINFOHEADER *, or TRgbQuad *. You can use the result wherever that type is normally used: