raw

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BGR

type BGR struct {
	Pix []uint8
	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
	Stride int // 3 * r.Dx()
	// Rect is the image's bounds.
	Rect image.Rectangle
}

func NewBGR

func NewBGR(rawValues []byte, width, height int) (*BGR, error)

func (*BGR) At

func (raw *BGR) At(x, y int) color.Color

func (*BGR) Bounds

func (raw *BGR) Bounds() image.Rectangle

func (*BGR) ColorModel

func (raw *BGR) ColorModel() color.Model

func (*BGR) PixOffset

func (raw *BGR) PixOffset(x, y int) int

func (*BGR) Set added in v0.3.1

func (raw *BGR) Set(x, y int, c color.Color)

type MergeBGR

type MergeBGR struct {
	Pixes [][][]uint8

	Rect image.Rectangle
	// contains filtered or unexported fields
}

func NewMergeBGR

func NewMergeBGR(rawValues [][][]byte, width, height int, horizontalOverlaps, verticalOverlaps []int) *MergeBGR

func (*MergeBGR) At

func (m *MergeBGR) At(x, y int) color.Color

func (*MergeBGR) Bounds

func (m *MergeBGR) Bounds() image.Rectangle

func (*MergeBGR) ColorModel

func (m *MergeBGR) ColorModel() color.Model

func (*MergeBGR) ImgOffset

func (m *MergeBGR) ImgOffset(x, y int) []uint8

Jump to

Keyboard shortcuts

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