imgdrv

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package imgdrv provides a minimal driver based on Go image/draw package. See ../fbdrv for similar drivers with more features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Image draw.Image
	// contains filtered or unexported fields
}

Driver provides simplest possible implementation of pix.Driver. Its speed is not important. The SetDir method does nothing.

func New

func New(img draw.Image) *Driver

New returns new Driver using img as frame memory.

func (*Driver) Draw

func (d *Driver) Draw(r image.Rectangle, src image.Image, sp image.Point, mask image.Image, mp image.Point, op draw.Op)

Draw implements pix.Driver.

func (*Driver) Err

func (d *Driver) Err(clear bool) error

Err implements pix.Driver.

func (*Driver) Fill

func (d *Driver) Fill(r image.Rectangle)

Fill implements pix.Driver.

func (*Driver) Flush

func (d *Driver) Flush()

Flush implements pix.Driver.

func (*Driver) SetColor

func (d *Driver) SetColor(c color.Color)

SetColor implements pix.Driver.

func (*Driver) SetDir

func (d *Driver) SetDir(dir int) image.Rectangle

SetDir implements pix.Driver.

Jump to

Keyboard shortcuts

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