Documentation ¶
Index ¶
- Constants
- func Arc(dst *Image, c draw.Point, a int, b int, t int, src *Image, sp draw.Point, ...)
- func Draw(dst *Image, r draw.Rectangle, src *Image, p0 draw.Point, mask *Image, ...)
- func Ellipse(dst *Image, c draw.Point, a int, b int, t int, src *Image, sp draw.Point, ...)
- func FillColor(m *Image, val draw.Color)
- func FillPoly(dst *Image, vert []draw.Point, w int, src *Image, sp draw.Point, op draw.Op)
- func Free(i *Image)
- func Init()
- func LDelete(i *Image)
- func LFree(i *Image)
- func LNoRefresh(l *Image, r draw.Rectangle, v interface{})
- func LOrigin(i *Image, log draw.Point, scr draw.Point) (int, error)
- func LSetRefresh(i *Image, fn Refreshfn, ptr interface{}) bool
- func LToFrontN(ip []*Image, n int)
- func LToRearN(ip []*Image, n int)
- func Line(dst *Image, p0 draw.Point, p1 draw.Point, end0, end1 draw.End, radius int, ...)
- func LineBBox(p0 draw.Point, p1 draw.Point, end0, end1 draw.End, radius int) draw.Rectangle
- func LineEndSize(end draw.End) int
- func Load(dst *Image, r draw.Rectangle, data []uint8, iscompressed bool) (int, error)
- func Poly(dst *Image, vert []draw.Point, end0, end1 draw.End, radius int, src *Image, ...)
- func Unload(src *Image, r draw.Rectangle, data []uint8) (int, error)
- type Image
- type Layer
- type Refreshfn
- type Screen
Constants ¶
View Source
const ( Frepl = 1 << 0 /* is replicated */ Fsimple = 1 << 1 /* is 1x1 */ Fgrey = 1 << 2 /* is grey */ Falpha = 1 << 3 /* has explicit alpha */ Fcmap = 1 << 4 /* has cmap channel */ Fbytes = 1 << 5 /* has only 8-bit channels */ )
Variables ¶
This section is empty.
Functions ¶
func Arc ¶
func Arc(dst *Image, c draw.Point, a int, b int, t int, src *Image, sp draw.Point, alpha int, phi int, op draw.Op)
* make a "wedge" mask covering the desired angle and contained in * a surrounding square; draw a full ellipse; intersect that with the * wedge to make a mask through which to copy src to dst.
func LNoRefresh ¶
func LSetRefresh ¶
func LineEndSize ¶
Types ¶
type Image ¶
type Image struct { R draw.Rectangle /* rectangle in data area, local coords */ Clipr draw.Rectangle /* clipping region */ Depth int /* number of bits of storage per pixel */ Pix draw.Pix /* channel descriptions */ Data *_Memdata /* pointer to data; shared by windows in this image */ Width uint32 /* width in words of a single scan line */ Layer *Layer /* nil if not a layer*/ Flags uint32 X interface{} ScreenRef int /* reference count if this is a screen */ // contains filtered or unexported fields }
var Black *Image
var Opaque *Image
type Layer ¶
type Layer struct { Screenr draw.Rectangle /* true position of layer on screen */ Delta draw.Point /* add delta to go from image coords to screen */ Screen *Screen /* screen this layer belongs to */ Refreshfn Refreshfn /* function to call to refresh obscured parts if save==nil */ Refreshptr interface{} /* argument to refreshfn */ // contains filtered or unexported fields }
Source Files ¶
- alloc.go
- arc.go
- cload.go
- cmap.go
- cread.go
- draw-stub.go
- draw.go
- ellipse.go
- fillpoly.go
- hwdraw.go
- iprint.go
- lalloc.go
- layerop.go
- ldelete.go
- ldraw.go
- lhide.go
- line.go
- lline.go
- lload.go
- load.go
- lorigin.go
- lsetrefresh.go
- ltofront.go
- ltorear.go
- lunload.go
- memdraw.h.go
- memlayer.h.go
- openmemsubfont.go
- poly.go
- read.go
- string.go
- subfont.go
- unload.go
- write.go
Click to show internal directories.
Click to hide internal directories.