Image.writePixel

Writes a single pixel. ubyte: most indexed formats. ushort: all 16bit indexed formats. Any other pixel structs are used for direct color.

class Image
T
writePixel
(
T
)
(
ushort x
,
ushort y
,
)
if (
T.stringof == ubyte.stringof ||
T.stringof == ushort.stringof
||
||
T.stringof == PixelRGB565.stringof
||
T.stringof == Pixel24Bit.stringof
||
T.stringof == Pixel32Bit.stringof
)

Meta