05-30-2006, 12:44 PM
Code:
bload "mybmp.bmp"
dim as integer bmp_x, bmpy
dim as any ptr bmp_img
bmp_img = imagecreate( bmp_x, bmp_y )
get( 0, 0 )-( bmp_x - 1, bmp_y - 1 ), bmp_img
bsave "mynewbmp.bmp", bmp_img
i believe thats how. you can also skip a step
Code:
dim as integer bmp_x, bmpy
dim as any ptr bmp_img
bmp_img = imagecreate( bmp_x, bmp_y )
bload "mybmp.bmp", bmp_img
put( 20, 20 ), bmp_img
bmp_x and bmp_y would of course contain the dimensions of the image