by nageswaragunupudi » Sun Oct 30, 2022 3:28 pm
RCDATA is 10
For AlphaBitmaps we have to use RCDATA. (better 10)
If your resource compiler complains that BITMAP file is not of a valid format, then change BITMAP to 10 (RCDATA) and try again.
When we specify RCDATA (10), the resource compiler reads the file and stores the contents as a string,
When FWH reads the resource, what all it gets is a string, which can be a pure text or binary data.
FWH ReadImage function checks if the data is a binary data and then if it is an image type and then what image type it is (bmp,ico,cur,jpeg,png,tiff,etc) and then reads it as an image and converts into hBitmap (in some cases it can be meta or other types.) We just leave all that headache to FWH and get back hBitmap (or pImage) or nil.
Regards
G. N. Rao.
Hyderabad, India