Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colormap ¶
type Colormap struct {
// contains filtered or unexported fields
}
func NewColormap ¶
Create new colormap by parsing colormap string, which is a comma-delimited set of <value>:<hex> entries, e.g., "1:#AABBCC,2:#DDEEFF"
type ColormapEncoder ¶
type ColormapEncoder struct {
// contains filtered or unexported fields
}
func NewColormapEncoder ¶
func NewColormapEncoder(width int, height int, colormap *Colormap) *ColormapEncoder
func (*ColormapEncoder) Encode ¶
func (e *ColormapEncoder) Encode(buffer interface{}) ([]byte, error)
type GrayscaleEncoder ¶
type GrayscaleEncoder struct {
// contains filtered or unexported fields
}
func NewGrayscaleEncoder ¶
func NewGrayscaleEncoder(width int, height int) *GrayscaleEncoder
func (*GrayscaleEncoder) Encode ¶
func (e *GrayscaleEncoder) Encode(buffer interface{}) ([]byte, error)
Encode uint8 values to 8-bit grayscale PNG
type PNGEncoder ¶
PNGEncoder provides an Encode() function for encoding buffer to PNG
type RGBEncoder ¶
type RGBEncoder struct {
// contains filtered or unexported fields
}
func NewRGBEncoder ¶
func NewRGBEncoder(width int, height int) *RGBEncoder
func (*RGBEncoder) Encode ¶
func (e *RGBEncoder) Encode(buffer interface{}) ([]byte, error)
Encode uint8...uint32 values to 24-bit RGB PNG
Click to show internal directories.
Click to hide internal directories.