Namespace: go.std.image.draw
v1.0Contents
Summary
Provides a low-level interface to the image/draw package.
Package draw provides image composition functions.
See "The Go image/draw package" for an introduction to this package:
https://golang.org/doc/articles/image_draw.html
Index
- *Op
- Draw
- DrawMask
- Drawer
- FloydSteinberg
- Image
- Op
- Over
- Quantizer
- RGBA64Image
- Src
- arrayOfDrawer
- arrayOfImage
- arrayOfOp
- arrayOfQuantizer
- arrayOfRGBA64Image
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
FloydSteinberg
Var v1.0FloydSteinberg is a Drawer that is the Src Op with Floyd-Steinberg error
diffusion.
-
Over
GoObject v1.0Over specifies ``(src in mask) over dst''.
-
Src
GoObject v1.0Src specifies ``src in mask''.
Functions, Macros, and Special Forms
-
Draw
Function v1.0(Draw dst r src sp op)
Draw calls DrawMask with a nil mask.
Go input arguments: (dst Image, r image.Rectangle, src image.Image, sp image.Point, op Op)
Joker input arguments: [^Image dst, ^go.std.image/Rectangle r, ^go.std.image/Image src, ^go.std.image/Point sp, ^Op op] -
DrawMask
Function v1.0(DrawMask dst r src sp mask mp 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.
Go input arguments: (dst Image, r image.Rectangle, src image.Image, sp image.Point, mask image.Image, mp image.Point, op Op)
Joker input arguments: [^Image dst, ^go.std.image/Rectangle r, ^go.std.image/Image src, ^go.std.image/Point sp, ^go.std.image/Image mask, ^go.std.image/Point mp, ^Op op]
Types
-
*Op
Concrete Type v1.0Op is a Porter-Duff compositing operator.
-
Drawer
Abstract Type v1.0Drawer contains the Draw method.
-
Draw
Method for Drawer v1.0([dst r src sp])
-
Image
Abstract Type v1.0Image is an image.Image with a Set method to change a single pixel.
-
At
Method for Image v1.0([x y])
-
Bounds
Method for Image v1.0([])
-
ColorModel
Method for Image v1.0([])
-
Set
Method for Image v1.0([x y c])
-
Op
Concrete Type v1.0Op is a Porter-Duff compositing operator.
-
Draw
Receiver for Op v1.0([dst r src sp])
Draw implements the Drawer interface by calling the Draw function with this
Op.
-
Quantizer
Abstract Type v1.0Quantizer produces a palette for an image.
-
Quantize
Method for Quantizer v1.0([p m])
-
RGBA64Image
Abstract Type v1.0RGBA64Image extends both the Image and image.RGBA64Image interfaces with a
SetRGBA64 method to change a single pixel. SetRGBA64 is equivalent to
calling Set, but it can avoid allocations from converting concrete color
types to the color.Color interface type.
-
At
Method for RGBA64Image v1.0([x y])
-
Bounds
Method for RGBA64Image v1.0([])
-
ColorModel
Method for RGBA64Image v1.0([])
-
RGBA64At
Method for RGBA64Image v1.0([x y])
-
Set
Method for RGBA64Image v1.0([x y c])
-
SetRGBA64
Method for RGBA64Image v1.0([x y c])
-
arrayOfDrawer
Concrete Type v1.0Drawer contains the Draw method.
-
arrayOfImage
Concrete Type v1.0Image is an image.Image with a Set method to change a single pixel.
-
arrayOfOp
Concrete Type v1.0Op is a Porter-Duff compositing operator.
-
arrayOfQuantizer
Concrete Type v1.0Quantizer produces a palette for an image.
-
arrayOfRGBA64Image
Concrete Type v1.0RGBA64Image extends both the Image and image.RGBA64Image interfaces with a
SetRGBA64 method to change a single pixel. SetRGBA64 is equivalent to
calling Set, but it can avoid allocations from converting concrete color
types to the color.Color interface type.