rgb565

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package rgb565 contains an image.RGBA64Image implementation of a 16-bit RGB565 image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RGB565ToRGB888

func RGB565ToRGB888(rgb Color) (r, g, b uint8)

Types

type Color

type Color [2]byte

func RGB888ToRGB565

func RGB888ToRGB565(r, g, b uint8) Color

type Image

type Image struct {
	Pix    []Color
	Stride int
	Rect   image.Rectangle
}

func New

func New(r image.Rectangle) *Image

func (*Image) At

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

func (*Image) Bounds

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

func (*Image) ColorModel

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

func (*Image) Draw

func (p *Image) Draw(dr image.Rectangle, src image.Image, sp image.Point, op draw.Op)

func (*Image) PixOffset

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

func (*Image) RGBA64At

func (p *Image) RGBA64At(x, y int) color.RGBA64

func (*Image) Set

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

func (*Image) SetRGBA64

func (p *Image) SetRGBA64(x, y int, c color.RGBA64)

func (*Image) SubImage

func (p *Image) SubImage(r image.Rectangle) image.Image

Jump to

Keyboard shortcuts

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