[ Version ( since = "3.0" ) ]
public bool set_colormap (Object format, uint8 colormap, size_t num_bytes)
This procedure sets the entries in the specified palette in one go, though they must all be in the same format.
The number of entries depens on the num_bytes size of colormap and the bytes-per-pixel size of format
. The procedure will fail if num_bytes is not an exact multiple of the number of bytes per pixel of format
.
| this |
The palette. |
| format |
The desired color format. |
| num_bytes |
The byte-size of |
|
true on success. |