I have a couple of problems with my first program:
1) the Y coordinate seems to shift halfway through the program, and I can't figure out why.
2) I'm using the GET command to get a piece of a bitmap font which is white on a purple background. I used photoshop to make the purple the alpha channel. What I need is a way to be able to change the color of the font from white to any color I want. I think CUSTOM might do it, but I'm stumped.
Here's my mess of a program:
Code: Select all
#include once "fbgfx.bi"
ScreenRes 1024, 768, 32, 2 'Sets up the screen to be 1024x768 in 32-bit color with 3 video pages.
Line (0,0)-(1023,200),RGB(255, 0,0), bf ' draws a red box in its correct place
ScreenSet 1,0 ' working page 1, displayed page 0
Dim As fb.Image Ptr tile = ImageCreate(32,32)
Get (32,32)-(63,63), tile ' here i get a character from my bitmap font, still in its correct place, coordinates-wise
Line (0,8)-(1023,200),RGB(255, 0,0) , bf
Put (2,32),tile, xor
' now the Y coordinate for some reason has shifted 8 pixels up
Thanks for any help :)