goimage

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package goimage provides functions for converting Pixiq image.Selection into standard Go image.Image and vice-versa

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToSelection

func CopyToSelection(source stdimage.Image, target image.Selection, options ...Option)

CopyToSelection copies standard Go Image to Pixiq image.Selection. The size of target Selection limits how much of the source Image is copied.

func FillWithSelection

func FillWithSelection(target draw.Image, source image.Selection, options ...Option)

FillWithSelection fills existing standard Go draw.Image with pixels from image.Selection

func FromSelection

func FromSelection(source image.Selection, options ...Option) stdimage.Image

FromSelection creates a standard Go Image from Pixiq image.Selection

Types

type Option

type Option func(opts) opts

Option is a conversion option

func Zoom

func Zoom(zoom int) Option

Zoom increases the image during conversion. Zoom <= 0 is treated as zoom 1.

Jump to

Keyboard shortcuts

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