readonly int DynamicSprite.ColorDepth;
Gets the colour depth of this dynamic sprite. This can be 8, 16 or 32 and is not necessarily the same
as the game colour depth (though this usually will be the case).
Example:
DynamicSprite* sprite = DynamicSprite.CreateFromFile("CustomAvatar.bmp");
if (sprite != null) {
Display("The image is %d x %d pixels, at %d-bit depth.", sprite.Width, sprite.Height, sprite.ColorDepth);
sprite.Delete();
}
displays the colour depth of the CustomAvatar.bmp image.
See Also: DynamicSprite.Height,
DynamicSprite.Width
|