OWLNext 7.0
Borland's Object Windows Library for the modern age
|
You can access TBitmap through an HBITMAP or as a BITMAP structure.
To get an HBITMAP from a TBitmap object, use the HBITMAP() operator with the TBitmap object as the parameter. The HBITMAP() operator, listed below, is almost never explicitly invoked:
This code automatically invokes the HBITMAP() conversion operator to cast the TBitmap object to the correct type. To convert a TBitmap object to a BITMAP structure, use the TBitmap::GetObject function:
The GetObject function fills out only the width, height, and color format information of the BITMAP structure. You can get the actual bitmap bits with the TBitmap::GetBitmapBits function.