Versions in this module Expand all Collapse all v0 v0.1.1 Aug 11, 2026 Changes in this version type Surface + func (s *Surface) ReadPixelsRGBAInto(dst []byte, rowBytes int) bool v0.1.0 Aug 9, 2026 Changes in this version + const Version + type Canvas struct + func (c *Canvas) Clear(argb uint32) + func (c *Canvas) ClipRRect(l, t, r, b float32, radii CornerRadii) + func (c *Canvas) ClipRect(l, t, r, b float32) + func (c *Canvas) DrawDRRect(ol, ot, or_, ob float32, outer CornerRadii, il, it, ir, ib float32, ...) + func (c *Canvas) DrawImage(img *Image, x, y float32, p *Paint) + func (c *Canvas) DrawImageRect(img *Image, sl, st, sr, sb, dl, dt, dr, db float32, p *Paint) + func (c *Canvas) DrawPath(path *Path, p *Paint) + func (c *Canvas) DrawRRect(l, t, r, b, rx, ry float32, p *Paint) + func (c *Canvas) DrawRRectCorners(l, t, r, b float32, radii CornerRadii, p *Paint) + func (c *Canvas) DrawRect(l, t, r, b float32, p *Paint) + func (c *Canvas) Restore() + func (c *Canvas) RestoreToCount(count int) + func (c *Canvas) Save() int + func (c *Canvas) SaveLayerAlpha(l, t, r, b float32, alpha uint8) int + func (c *Canvas) Translate(dx, dy float32) + type CornerRadii [8]float32 + func Radii(upperLeft, upperRight, lowerRight, lowerLeft float32) CornerRadii + type Image struct + func NewImageA8(alpha []byte, width, height, rowBytes int) *Image + func NewImageRGBA(pix []byte, width, height, rowBytes int) *Image + func (img *Image) Delete() + func (img *Image) Height() int + func (img *Image) Width() int + type Paint struct + func NewPaint() *Paint + func (p *Paint) Delete() + func (p *Paint) SetAntiAlias(on bool) + func (p *Paint) SetColor(argb uint32) + func (p *Paint) SetStrokeWidth(width float32) + func (p *Paint) SetStyle(style PaintStyle) + type PaintStyle int + const PaintFill + const PaintStroke + type Path struct + func NewPath() *Path + func (p *Path) Close() + func (p *Path) Delete() + func (p *Path) LineTo(x, y float32) + func (p *Path) MoveTo(x, y float32) + func (p *Path) QuadTo(x1, y1, x2, y2 float32) + type Surface struct + func NewRasterSurface(width, height int) *Surface + func (s *Surface) Canvas() *Canvas + func (s *Surface) Delete() + func (s *Surface) Height() int + func (s *Surface) ReadPixels() []byte + func (s *Surface) ReadPixelsInto(dst []byte, rowBytes int) bool + func (s *Surface) SavePNG(path string) error + func (s *Surface) Width() int