Skip to content

SprFormat.ForBitsPerPixel Method ​

Definition ​

Gets the singleton for the specified bit depth.

c#
public static SprFormat ForBitsPerPixel(int bitsPerPixel);

View source

Parameters ​

NameTypeDescription
bitsPerPixelInt32The explicit interpretation: 4, 8 bits per pixel.

Returns ​

SprFormat

The selected format.