Image.setPixelv

Sets the Color of the pixel at (dst.x, dst.y) if the image is locked. Note that the dst values must be integers. Example:

More...
struct Image
@nogc nothrow
void
setPixelv
(
in Vector2 dst
,
in Color color
)

Detailed Description

var img = Image.new() img.create(img_width, img_height, false, Image.FORMAT_RGBA8) img.lock() img.set_pixelv(Vector2(x, y), color) # Works img.unlock() img.set_pixelv(Vector2(x, y), color) # Does not have an effect

Meta