Here is what I have done so far.

by (Login burger2227)
R

 

[linked image]

Code:

_TITLE "Bitmap Color Editor"
dst& = _NEWIMAGE(800, 600, 32) 'for console bitmap
SCREEN dst&
con& = _LOADIMAGE("BMPConsole.bmp", 256)
_PUTIMAGE, con&
tbl& = _LOADIMAGE("ColorTable.bmp", 256)
_PUTIMAGE (652, 20), tbl&

sleep

bmp& = _LOADIMAGE("howie2.bmp", 256) ' adopts colors with _COPYPALETTE
_PUTIMAGE (6, 6)-(435 + 5, 435 + 5), bmp& 'howie2

'bmp& = _LOADIMAGE("QB64logo.bmp", 256) ' use any 4 0r 8 BPP bitmap
'_PUTIMAGE (6, 6)-(632 + 5, 480 + 5), bmp& ' use second coordinates to stretch the image

'-(502 + 5, 450 + 5), bmp&, dst& 'genie


_COPYPALETTE bmp&, tbl& 'with NEW 32 ' reset color table to bitmap's settings
_PUTIMAGE (652, 20), tbl&

' _DEST con& 'does not help prints

wide& = _WIDTH (bmp&)
deep& = _HEIGHT (bmp&)
COLOR 254: LOCATE 32, 5: PRINT wide&; "X"; deep&

So far I can't figure how to update the console readings. The only print that works is the one above.

Ted

Posted on Feb 22, 2010, 11:24 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
*Isn't the console just another bitmap? Anyway, looking good. on Feb 23
 They are separate bitmaps using their own colors in 32 . on Feb 23
  *Good luck. on Feb 23
   Good luck if you try the 32 bit way Bob. on Feb 24
    Yeah, sounds complicated... on Feb 24
     * I will Bob. It has not been discussed much and Galleon has been busy. on Feb 25

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement