Documentation ¶
Overview ¶
Package imgext is package extension of go proprietary image package thanks to https://github.com/dkolbly/wl/blob/master/ui/bgra.go
Index ¶
- type BGRA
- func (p *BGRA) At(x, y int) color.Color
- func (p *BGRA) Bounds() image.Rectangle
- func (p *BGRA) ColorModel() color.Model
- func (p *BGRA) Opaque() bool
- func (p *BGRA) Painter() *BGRAPainter
- func (p *BGRA) PixOffset(x, y int) int
- func (p *BGRA) RGBAAt(x, y int) color.RGBA
- func (p *BGRA) Set(x, y int, c color.Color)
- func (p *BGRA) SetRGBA(x, y int, c color.RGBA)
- func (p *BGRA) SubImage(r image.Rectangle) image.Image
- type BGRAPainter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGRA ¶
BGRA is like RGBA but in wayland's byte order
func ConvertRGBAToBGRA ¶
ConvertRGBAToBGRA converts *image.RGBA into *imgext.BGRA
func (*BGRA) ColorModel ¶
func (*BGRA) Painter ¶
func (p *BGRA) Painter() *BGRAPainter
type BGRAPainter ¶
type BGRAPainter struct {
// contains filtered or unexported fields
}
a BGRAPainter is used to interface with the freetype renderer and raster library
func (*BGRAPainter) SetColor ¶
func (p *BGRAPainter) SetColor(c color.Color)
Click to show internal directories.
Click to hide internal directories.