Documentation ¶
Index ¶
- type Image
- type ImagePattern
- type LinearGradient
- type RadialGradient
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImagePattern ¶
type ImagePattern struct {
// contains filtered or unexported fields
}
func (*ImagePattern) Delete ¶
func (ip *ImagePattern) Delete()
func (*ImagePattern) Replace ¶
func (ip *ImagePattern) Replace(data backendbase.ImagePatternData)
type LinearGradient ¶
type LinearGradient struct {
// contains filtered or unexported fields
}
func (*LinearGradient) Delete ¶
func (g *LinearGradient) Delete()
func (*LinearGradient) Replace ¶
func (g *LinearGradient) Replace(data backendbase.Gradient)
type RadialGradient ¶
type RadialGradient struct {
// contains filtered or unexported fields
}
func (*RadialGradient) Delete ¶
func (g *RadialGradient) Delete()
func (*RadialGradient) Replace ¶
func (g *RadialGradient) Replace(data backendbase.Gradient)
type SoftwareBackend ¶
type SoftwareBackend struct { Image *image.RGBA MSAA int // contains filtered or unexported fields }
func New ¶
func New(w, h int) *SoftwareBackend
func (*SoftwareBackend) AsImage ¶
func (b *SoftwareBackend) AsImage() backendbase.Image
func (*SoftwareBackend) CanUseAsImage ¶
func (b *SoftwareBackend) CanUseAsImage(b2 backendbase.Backend) bool
func (*SoftwareBackend) Clear ¶
func (b *SoftwareBackend) Clear(pts [4]backendbase.Vec)
func (*SoftwareBackend) ClearClip ¶
func (b *SoftwareBackend) ClearClip()
func (*SoftwareBackend) Clip ¶
func (b *SoftwareBackend) Clip(pts []backendbase.Vec)
func (*SoftwareBackend) DrawImage ¶
func (b *SoftwareBackend) DrawImage(dimg backendbase.Image, sx, sy, sw, sh float64, pts [4]backendbase.Vec, alpha float64)
func (*SoftwareBackend) Fill ¶
func (b *SoftwareBackend) Fill(style *backendbase.FillStyle, pts []backendbase.Vec, tf backendbase.Mat, canOverlap bool)
func (*SoftwareBackend) FillImageMask ¶
func (b *SoftwareBackend) FillImageMask(style *backendbase.FillStyle, mask *image.Alpha, pts [4]backendbase.Vec)
func (*SoftwareBackend) GetImageData ¶
func (b *SoftwareBackend) GetImageData(x, y, w, h int) *image.RGBA
func (*SoftwareBackend) LoadImage ¶
func (b *SoftwareBackend) LoadImage(img image.Image) (backendbase.Image, error)
func (*SoftwareBackend) LoadImagePattern ¶
func (b *SoftwareBackend) LoadImagePattern(data backendbase.ImagePatternData) backendbase.ImagePattern
func (*SoftwareBackend) LoadLinearGradient ¶
func (b *SoftwareBackend) LoadLinearGradient(data backendbase.Gradient) backendbase.LinearGradient
func (*SoftwareBackend) LoadRadialGradient ¶
func (b *SoftwareBackend) LoadRadialGradient(data backendbase.Gradient) backendbase.RadialGradient
func (*SoftwareBackend) PutImageData ¶
func (b *SoftwareBackend) PutImageData(img *image.RGBA, x, y int)
func (*SoftwareBackend) SetSize ¶
func (b *SoftwareBackend) SetSize(w, h int)
func (*SoftwareBackend) Size ¶
func (b *SoftwareBackend) Size() (int, int)
Click to show internal directories.
Click to hide internal directories.