bgr

package
v0.0.0-...-3c317a0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReverseDIB

func ReverseDIB(imageBits []byte, srcWidth, srcHeight int, bitsPerPixel int) []byte

翻转图像 并padding 空白 BMP 必须 DWORD 对齐

Types

type BGRImage

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

func NewBGRImage

func NewBGRImage(r image.Rectangle) *BGRImage

func (*BGRImage) At

func (B *BGRImage) At(x, y int) color.Color

func (*BGRImage) Bounds

func (B *BGRImage) Bounds() image.Rectangle

func (BGRImage) ColorModel

func (B BGRImage) ColorModel() color.Model

func (*BGRImage) PixOffset

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

func (*BGRImage) Set

func (B *BGRImage) 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