Up |
_AFFbitmapPalette
Associate a colors palette to a (8-bits) bitmap.
The array must have 768 items : 256 colors * 3 composantes R G B.
Prototype :
fun [ObjBitmap8 tab I] ObjBitmap8
- ObjBitmap8 : a 8-bits bitmap object
- tab I : an array (256*3 - colors palette). If the array has a different size, the return bitmap will be unchanged
Return : ObjBitmap8 the same bitmap or nil if the bitmap is invalid
See also :
Example :