colormasked

package module
v0.0.0-...-7580ab2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: MIT Imports: 3 Imported by: 0

README

colormasked

A go package containing a color-masked image which satisfies the image.Image interface

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Img image.Image
	Mod color.Model
}

func (*Image) At

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

At forwards the call to the original image and then asks the color model to convert it.

func (*Image) Bounds

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

... but the original bounds

func (*Image) ColorModel

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

We return the new color model...

func (*Image) GrayValueAt

func (c *Image) GrayValueAt(x, y int) uint16

Extracts the numerical 16-bit grayscale value of the point

func (*Image) ToFloat

func (c *Image) ToFloat() [][]float64

Jump to

Keyboard shortcuts

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