imagetools

package
v0.0.0-...-2e4101f Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: Zlib Imports: 4 Imported by: 0

Documentation

Overview

A Component for working with Diffuse maps aka. Textures aka. Pictures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeImage

func MergeImage(dst image.Image, srcColor image.Image, srcLuma image.Image) copier.Operator

func SplitImage

func SplitImage(dstColor image.Image, dstLuma image.Image, src image.Image, neutral color.Color) copier.Operator

Types

type YuvInput

type YuvInput interface {
	YCbCrAt(x, y int) color.YCbCr
}

func NewYuvInput

func NewYuvInput(i image.Image) YuvInput

type YuvOutput

type YuvOutput interface {
	SetYCbCr(x, y int, c color.YCbCr)
}

func ToYuvOutput

func ToYuvOutput(i image.Image) YuvOutput

Supports *image.YCbCr and anything that implements draw.Image!

Jump to

Keyboard shortcuts

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