raster

package
v0.0.0-...-df006db Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grmap

type Grmap struct {
	Comments []string
	// contains filtered or unexported fields
}

Grmap parallels Bitmap, but with an element type of uint16 in place of Pixel.

func NewGrmap

func NewGrmap(x, y int) (b *Grmap)

NewGrmap constructor.

func (*Grmap) Bitmap

func (g *Grmap) Bitmap() *Bitmap

Bitmap method Grmap, converts Grmap to Bitmap. All pixels in the resulting color Bitmap will be (very nearly) shades of gray.

func (*Grmap) Extent

func (b *Grmap) Extent() (cols, rows int)

func (*Grmap) Fill

func (g *Grmap) Fill(c uint16)

func (*Grmap) GetPx

func (g *Grmap) GetPx(x, y int) (uint16, bool)

func (*Grmap) SetPx

func (g *Grmap) SetPx(x, y int, c uint16) bool

Jump to

Keyboard shortcuts

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