struct

CrImage::Draw::Op

Inherits CrImage::Draw::Drawer / Struct / Value / Object

Porter-Duff compositing operator

Constants

OVER = new(0)

Over specifices (src in mask) over dst

SRC = new(1)

Src specified src in mask

Instance methods

draw(dst : Image, r : Rectangle, src : Image, sp : Point)

draw implememts the Drawer by calling the draw function with this Op

Source
eq(other : Op)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source