Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGRA32Color ¶
type BGRA32Color struct {
Color32
}
func ToBGRA32Color ¶
func ToBGRA32Color(c color.Color) BGRA32Color
func (BGRA32Color) RGBA ¶
func (c BGRA32Color) RGBA() (r, g, b, a uint32)
type BGRA32Image ¶
type BGRA32Image struct {
*Image32
}
func NewBGRA32Image ¶
func NewBGRA32Image(r image.Rectangle, stride int, buf []byte) *BGRA32Image
func (*BGRA32Image) FillColor ¶
func (i *BGRA32Image) FillColor(c color.Color)
type Image ¶
type Image interface {
// To be compatible with standard library
// Contains other fields that not used by fbimage
draw.Image
// Implemented in ImageStore
Bounds() image.Rectangle
FrameBuffer() []byte
Clear()
// Needs to be implemented by dest image impls i.e. bgra32image, ...
// For performance & color space issues
At(x, y int) color.Color
Set(x, y int, c color.Color)
FillColor(c color.Color)
SetLine(x1, y1, x2 int, c color.Color)
SubImage(r image.Rectangle) Image
}
type Image32 ¶
type Image32 struct {
ImageStore
}
type Image8 ¶
type Image8 struct {
ImageStore
}
type ImageStore ¶
ImageStore provides basic functions for upper-level image formats
func NewImageStore ¶
func (ImageStore) Bounds ¶
func (i ImageStore) Bounds() image.Rectangle
func (ImageStore) Clear ¶
func (i ImageStore) Clear()
func (ImageStore) ColorModel ¶
func (i ImageStore) ColorModel() color.Model
Compatible with standard library; not used in fbimage
func (ImageStore) FrameBuffer ¶
func (i ImageStore) FrameBuffer() []byte
func (ImageStore) SetLineBytes ¶
func (i ImageStore) SetLineBytes(x1, y1, x2 int, src []byte)
type RGBA32Color ¶
type RGBA32Color struct {
Color32
}
func ToRGBA32Color ¶
func ToRGBA32Color(c color.Color) RGBA32Color
func (RGBA32Color) RGBA ¶
func (c RGBA32Color) RGBA() (r, g, b, a uint32)
type RGBA32Image ¶
type RGBA32Image struct {
*Image32
}
func NewRGBA32Image ¶
func NewRGBA32Image(r image.Rectangle, stride int, buf []byte) *RGBA32Image
func (*RGBA32Image) FillColor ¶
func (i *RGBA32Image) FillColor(c color.Color)
Click to show internal directories.
Click to hide internal directories.