BB___DRAWBMP

=DRAWBMP= toc

Description
> Displays - draws - a bitmap that has been loaded with or captured with  to a graphics window or graphicbox control at the upper left coords of x and y.

Hints
> As long as a bitmap image remains in memory, it can be drawn to as many graphics windows or graphicboxes that you wish. > This is not the same as images that are flushed and saved to a graphics segment. In that case, even with the image, you can still resize, minimize, or cover a window without the loss of the graphics.

These commands are generally used when working with bitmaps: loadbmp unloadbmp drawbmp getbmp bmpsave

Example
code format="lb" 'Run this example from the main JustBASIC program folder so   'the bmp\subfolder and bmp image are accessible. loadbmp "copyimage", "bmp\copy.bmp" open "Loadbmp Test" for graphics as #main #main "trapclose [quit]"

print #main, "drawbmp copyimage 10 10; flush"

wait

[quit] unloadbmp "copyimage" close #main end code

Useful Functions
code format="lb" Place a useful function using this keyword here code