Versions in this module Expand all Collapse all v2 v2.0.6 Feb 10, 2025 v2.0.5 Jan 1, 2025 v2.0.4 Nov 16, 2024 v2.0.3 Nov 15, 2024 v2.0.2 Nov 13, 2024 Changes in this version + func RotatePoint(x, y, sin, cos float64) (float64, float64) + func RotatedSize(w, h int, angle float64) (int, int) + type AreaRect struct + MaxX int + MaxY int + MinX int + MinY int + func MakeAreaRect(x0, y0, x1, y1 int) *AreaRect + type DrawStringParams struct + Color color.Color + Font *truetype.Font + FontDPI int + Height int + Size int + Text string + Width int + type Matrix struct + X0 float64 + XX float64 + XY float64 + Y0 float64 + YX float64 + YY float64 + func (a Matrix) Multiply(b Matrix) Matrix + func (a Matrix) Rotate(angle float64) Matrix + func (a Matrix) Translate(x, y float64) Matrix + type NRGBA interface + CalcMarginBlankArea func() *AreaRect + CropCircle func(x, y, radius, zoom int) + DrawImage func(img Palette, dotRect *PositionRect, posRect *AreaRect) + DrawString func(params *DrawStringParams, pt fixed.Point26_6) error + Get func() *image.NRGBA + Rotate func(angle int) + SubImage func(r image.Rectangle) + func CreateNRGBACanvas(width, height int, isAlpha bool) NRGBA + func NewNRGBA(r image.Rectangle, isAlpha bool) NRGBA + type Palette interface + AngleSwapPoint func(x, y, r, angle float64) (tarX, tarY float64) + CalcMarginBlankArea func() *AreaRect + Distort func(amplude float64, period float64) + DrawBeeline func(point1 image.Point, point2 image.Point, lineColor color.RGBA) + DrawCircle func(x, y, radius int, c color.RGBA) + DrawHorizLine func(fromX, toX, y int, c color.RGBA) + DrawString func(params *DrawStringParams, pt fixed.Point26_6) error + Get func() *image.Paletted + Rotate func(angle int) + func CreatePaletteCanvas(width, height int, colour []color.RGBA) Palette + func NewPalette(r image.Rectangle, p color.Palette) Palette + type PositionRect struct + Height int + Width int + X int + Y int + func MakePositionRect(x, y, h, w int) *PositionRect