Surface.this

Constructs a blank indexed palette-using dsdl2.Surface from an array of pixels

Parameters

pixels void[]

array of pixel data (copied internally)

size uint[2]

size (width and height) of the dsdl2.Surface in pixels

pitch size_t

skips in bytes per line/row of the dsdl2.Surface

bitDepth ubyte

bit depth of the palette index (1, 4, or 8)

palette Palette

dsdl2.Palette to use

Throws

dsdl2.SDLException if allocation failed or palette-setting failed

Meta