imagef

package
v0.0.0-...-405cb25 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package imagef provides a floating-point image implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Linear

func Linear(s float64) float64

Types

type Image

type Image [][]colorf.Color

func Load

func Load(fname string, colorspace func(float64) float64) (Image, error)

func MakeImage

func MakeImage(w, h int) Image

func MustLoad

func MustLoad(fname string) Image

func (Image) At

func (img Image) At(i, j int) color.Color

At implements image.Image

func (Image) Bounds

func (i Image) Bounds() image.Rectangle

Bounds implements image.Image

func (Image) ColorModel

func (i Image) ColorModel() color.Model

ColorModel implements image.Image

func (Image) Copy

func (i Image) Copy() Image

func (Image) NumPixels

func (i Image) NumPixels() int

func (Image) RGBAAt

func (img Image) RGBAAt(i, j int) (r, g, b, a uint32)

func (Image) Size

func (i Image) Size() (width, height int)

type ImageGray

type ImageGray [][]float64

func MakeImageGray

func MakeImageGray(w, h int) ImageGray

TODO: remove

func (ImageGray) At

func (img ImageGray) At(i, j int) colorf.Color

At implements image.Image

func (ImageGray) Bounds

func (i ImageGray) Bounds() image.Rectangle

Bounds implements image.Image

func (ImageGray) ColorModel

func (i ImageGray) ColorModel() color.Model

ColorModel implements image.Image

Directories

Path Synopsis
Package colorf provides a floating-point color implementation.
Package colorf provides a floating-point color implementation.
Package post implements image post-processing effects, like bloom.
Package post implements image post-processing effects, like bloom.
Package PPM provides support for images in the NetPBM format, as defined by https://en.wikipedia.org/wiki/Netpbm_format.
Package PPM provides support for images in the NetPBM format, as defined by https://en.wikipedia.org/wiki/Netpbm_format.

Jump to

Keyboard shortcuts

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