GRAPHIC BITMAP LOAD appears to do an automatic stretch to fit the size specified in the call. This is not documented. Is this the way the call is supposed to perform?
Announcement
Collapse
No announcement yet.
Graphic Bitmap Load
Collapse
X
-
Graphic Bitmap Load
Yep.
But, it would seem to me that if the source *.BMP is larger than the memory bitmap it would stop loading when the size of the memory bitmap is reached instead of shrinking the source. On the other hand, if the memory bitmap is larger than the source the source should not be expanded to fit the memory bitmap. Those should be left to GRAPHIC STRETCH or GRAPHIC RENDER.
Unlike GRAPHIC RENDER and GRAPHIC STRETCH, the documentation for GRAPHIC BITMAP LOAD does not state that the source will be expanded or shrunk to fit the memory bitmap.Walt Decker
Comment
-
It does not specifically state that the bitmap will be stretched to fit, you're right, all I read there is:
The parameters nWidth& and nHeight& specify the width and height of the bitmap, in pixels.Adam Drake
PowerBASIC
Comment
-
Well, I for one expected a bit to bit copy. The memory bitmap was about 20 X 10 larger than the source bitmap since I wanted to do some work on it before loading into the graphic control. Since the source was stretched I had to create a second memory map, copy the first into the second, then do the work.
It's no big deal, just some extra coding, but it was a surprise.Walt Decker
Comment
Comment