I have the DB Book and typed some code in to create some bitmaps and flip the bitmap. I can't get the bitmap to flip but if I rem out the flip command the bitmap 1 will copy to bitmap 2 and you can see it but when I put the flip command back in you can't see anything in bitmap 2.
Is there a problem with the flip bitmap command or is it a bug that needs fixing?
here is the code
`Initialize program
HIDE MOUSE
RANDOMIZE TIMER()
`Create two bitmaps
CREATE BITMAP 2, 640, 240
CREATE BITMAP 1, 640, 240
`Draw some text on the screen
SET TEXT FONT "Times New Roman"
SET TEXT SIZE 48
SET TEXT TO BOLD
INK RGB(RND(255),RND(255),RND(255)), 0
CENTER TEXT 320, 10, "BITMAP FLIP EFFECT"
`Copy bitmap 1 to the screen
SET CURRENT BITMAP 0
COPY BITMAP 1, 0
`Draw a line across the center
LINE 0, 235, 639, 235
`Copy bitmap 1 to bitmap 2 and flip it
COPY BITMAP 1, 2
FLIP BITMAP 2
'Display bitmap 2 on the screen
COPY BITMAP 2, 0, 0, 639, 239, 0, 0, 239, 639, 479
`Wait then clean up
WAIT KEY
DELETE BITMAP 2
DELETE BITMAP 1
END
Scott Wolfe