imageutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-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 holds the image's pixels, in B, G, R order. The pixel at
	// (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*3].
	Pix []byte
	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
	Stride int
	// Rect is the image's bounds.
	Rect image.Rectangle
}

func NewBGR

func NewBGR(r image.Rectangle) *BGR

func ToBGR

func ToBGR(i image.Image) *BGR

func (*BGR) At

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

func (*BGR) Bounds

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

func (*BGR) ColorModel

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

func (*BGR) PixOffset

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

func (*BGR) Set

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

Jump to

Keyboard shortcuts

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