image

package
v0.0.0-...-6b91a8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockCompressedImage

type BlockCompressedImage interface {
	image.Image
	Compress(im image.Image) error
	Uncompress() (image.Image, error)
	BlockDimensions() (int, int)
}

type ETC1

type ETC1 struct {
	Pix  []uint8
	Rect image.Rectangle
}

func NewETC1

func NewETC1(r image.Rectangle) *ETC1

func (*ETC1) At

func (p *ETC1) At(x, y int) color.Color

func (*ETC1) BlockDimensions

func (p *ETC1) BlockDimensions() (x, y int)

func (*ETC1) Bounds

func (p *ETC1) Bounds() image.Rectangle

func (*ETC1) ColorModel

func (p *ETC1) ColorModel() color.Model

func (*ETC1) Compress

func (p *ETC1) Compress(im image.Image) error

func (*ETC1) Uncompress

func (p *ETC1) Uncompress() (image.Image, error)

type NRGBA4444

type NRGBA4444 struct {
	Pix    []byte
	Stride int
	Rect   image.Rectangle
}

NRGBA4444 is an in-memory image whose At method returns color.NRGBA4444 values.

func NewNRGBA4444

func NewNRGBA4444(r image.Rectangle) *NRGBA4444

func (*NRGBA4444) At

func (p *NRGBA4444) At(x, y int) color.Color

func (*NRGBA4444) Bounds

func (p *NRGBA4444) Bounds() image.Rectangle

func (*NRGBA4444) ColorModel

func (p *NRGBA4444) ColorModel() color.Model

func (*NRGBA4444) PixOffset

func (p *NRGBA4444) PixOffset(x, y int) int

func (*NRGBA4444) Set

func (p *NRGBA4444) Set(x, y int, c color.Color)

type RGB

type RGB struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

RGB is an in-memory image whose At method returns color.RGB values.

func NewRGB

func NewRGB(r image.Rectangle) *RGB

func (*RGB) At

func (p *RGB) At(x, y int) color.Color

func (*RGB) Bounds

func (p *RGB) Bounds() image.Rectangle

func (*RGB) ColorModel

func (p *RGB) ColorModel() color.Model

func (*RGB) PixOffset

func (p *RGB) PixOffset(x, y int) int

func (*RGB) Set

func (p *RGB) Set(x, y int, c color.Color)

type RGB565

type RGB565 struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

RGB565 is an in-memory image whose At method returns color.RGB565 values.

func NewRGB565

func NewRGB565(r image.Rectangle) *RGB565

func (*RGB565) At

func (p *RGB565) At(x, y int) color.Color

func (*RGB565) Bounds

func (p *RGB565) Bounds() image.Rectangle

func (*RGB565) ColorModel

func (p *RGB565) ColorModel() color.Model

func (*RGB565) PixOffset

func (p *RGB565) PixOffset(x, y int) int

func (*RGB565) Set

func (p *RGB565) Set(x, y int, c color.Color)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL