type Drawer(interface)
Drawer contains the Draw method.
Draw aligns r.Min in dst with sp in src and then replaces the
rectangle r in dst with the result of drawing src on dst.
Op
var FloydSteinberg
type Quantizer(interface)
Quantizer produces a palette for an image.
Quantize appends up to cap(p) - len(p) colors to p and returns the
updated palette suitable for converting m to a paletted image.
func DrawMask(dst Image, r image.Rectangle, src image.Image, sp image.Point, mask image.Image, mp image.Point, op Op)
DrawMask aligns r.Min in dst with sp in src and mp in mask and then replaces the rectangle r
in dst with the result of a Porter-Duff composition. A nil mask is treated as opaque.
var FloydSteinbergDrawer
FloydSteinberg is a Drawer that is the Src Op with Floyd-Steinberg error
diffusion.
const OverOp = 0
Over specifies ``(src in mask) over dst''.
The pages are generated with Goldsv0.1.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.