Versions in this module Expand all Collapse all v0 v0.12.3 Jan 19, 2022 Changes in this version + type Image struct + func (img *Image) Delete() + func (img *Image) Height() int + func (img *Image) Replace(src image.Image) error + func (img *Image) Size() (w, h int) + func (img *Image) Width() int + type ImagePattern struct + func (ip *ImagePattern) Delete() + func (ip *ImagePattern) Replace(data backendbase.ImagePatternData) + type LinearGradient struct + func (g *LinearGradient) Delete() + func (g *LinearGradient) Replace(data backendbase.Gradient) + type RadialGradient struct + func (g *RadialGradient) Delete() + func (g *RadialGradient) Replace(data backendbase.Gradient) + type SoftwareBackend struct + Image *image.RGBA + MSAA int + func New(w, h int) *SoftwareBackend + func (b *SoftwareBackend) AsImage() backendbase.Image + func (b *SoftwareBackend) CanUseAsImage(b2 backendbase.Backend) bool + func (b *SoftwareBackend) Clear(pts [4]backendbase.Vec) + func (b *SoftwareBackend) ClearClip() + func (b *SoftwareBackend) Clip(pts []backendbase.Vec) + func (b *SoftwareBackend) DrawImage(dimg backendbase.Image, sx, sy, sw, sh float64, pts [4]backendbase.Vec, ...) + func (b *SoftwareBackend) Fill(style *backendbase.FillStyle, pts []backendbase.Vec, tf backendbase.Mat, ...) + func (b *SoftwareBackend) FillImageMask(style *backendbase.FillStyle, mask *image.Alpha, pts [4]backendbase.Vec) + func (b *SoftwareBackend) GetImageData(x, y, w, h int) *image.RGBA + func (b *SoftwareBackend) LoadImage(img image.Image) (backendbase.Image, error) + func (b *SoftwareBackend) LoadImagePattern(data backendbase.ImagePatternData) backendbase.ImagePattern + func (b *SoftwareBackend) LoadLinearGradient(data backendbase.Gradient) backendbase.LinearGradient + func (b *SoftwareBackend) LoadRadialGradient(data backendbase.Gradient) backendbase.RadialGradient + func (b *SoftwareBackend) PutImageData(img *image.RGBA, x, y int) + func (b *SoftwareBackend) SetSize(w, h int) + func (b *SoftwareBackend) Size() (int, int)