Probably an elementary question, but after an hour ...
Say a program determines a bitmap handle using the Windows API. For example:
winC = CreateCompatibleBitmap(...)
and along the way it computes the width W and height H of the bitmap.
Problem: Get the various Graphic statements to recognize this bitmap. Graphic Attach winC, 0 doesn’t work.
In other words, how can the program set up a handle for this bitmap that PowerBasic’s Graphic statements recognize, a handle, call it winD, that can be used as if the bitmap had been set up with
Graphic Bitmap New W,H to winD
?
A sort of inverse of Get DC.
Say a program determines a bitmap handle using the Windows API. For example:
winC = CreateCompatibleBitmap(...)
and along the way it computes the width W and height H of the bitmap.
Problem: Get the various Graphic statements to recognize this bitmap. Graphic Attach winC, 0 doesn’t work.
In other words, how can the program set up a handle for this bitmap that PowerBasic’s Graphic statements recognize, a handle, call it winD, that can be used as if the bitmap had been set up with
Graphic Bitmap New W,H to winD
?
A sort of inverse of Get DC.
Comment