Bitmap manipulation before/for a video_border() call

Posted By: DocJoe

Bitmap manipulation before/for a video_border() call - 05/22/13 11:01

On my site it's not possible to manipulate a bitmap to use it for a video_border() call. Below a code sample:

Quote:
BMAP* bBorder512 = bmap_createblack(512, 512, 24);
var format = bmap_lock(bBorder512, 0);
bmap_fill(bBorder512, vector(255,0,0), 100);
bmap_unlock(bBorder512);
video_border(bBorder512, 10, 10, 400, 400);


The bBorder512 bitmap format changes to 32 bit (the most 3D video cards don't support the 24 bit bitmap mode). Seems this is the cause (?).

Any idea?
© 2024 lite-C Forums