image

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package image provides a mockable wrapper for image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Decode

func (*Impl) Decode(r io.Reader) (image.Image, string, error)

func (*Impl) DecodeConfig

func (*Impl) DecodeConfig(r io.Reader) (image.Config, string, error)

func (*Impl) NewAlpha

func (*Impl) NewAlpha(r image.Rectangle) *image.Alpha

func (*Impl) NewAlpha16

func (*Impl) NewAlpha16(r image.Rectangle) *image.Alpha16

func (*Impl) NewCMYK

func (*Impl) NewCMYK(r image.Rectangle) *image.CMYK

func (*Impl) NewGray

func (*Impl) NewGray(r image.Rectangle) *image.Gray

func (*Impl) NewGray16

func (*Impl) NewGray16(r image.Rectangle) *image.Gray16

func (*Impl) NewNRGBA

func (*Impl) NewNRGBA(r image.Rectangle) *image.NRGBA

func (*Impl) NewNRGBA64

func (*Impl) NewNRGBA64(r image.Rectangle) *image.NRGBA64

func (*Impl) NewNYCbCrA

func (*Impl) NewNYCbCrA(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.NYCbCrA

func (*Impl) NewPaletted

func (*Impl) NewPaletted(r image.Rectangle, p color.Palette) *image.Paletted

func (*Impl) NewRGBA

func (*Impl) NewRGBA(r image.Rectangle) *image.RGBA

func (*Impl) NewRGBA64

func (*Impl) NewRGBA64(r image.Rectangle) *image.RGBA64

func (*Impl) NewUniform

func (*Impl) NewUniform(c color.Color) *image.Uniform

func (*Impl) NewYCbCr

func (*Impl) NewYCbCr(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.YCbCr

func (*Impl) Pt

func (*Impl) Pt(X int, Y int) image.Point

func (*Impl) Rect

func (*Impl) Rect(x0 int, y0 int, x1 int, y1 int) image.Rectangle

func (*Impl) RegisterFormat

func (*Impl) RegisterFormat(name string, magic string, decode func(io.Reader) (image.Image, error), decodeConfig func(io.Reader) (image.Config, error))

type Interface

type Interface interface {
	Decode(r io.Reader) (image.Image, string, error)
	DecodeConfig(r io.Reader) (image.Config, string, error)
	NewAlpha(r image.Rectangle) *image.Alpha
	NewAlpha16(r image.Rectangle) *image.Alpha16
	NewCMYK(r image.Rectangle) *image.CMYK
	NewGray(r image.Rectangle) *image.Gray
	NewGray16(r image.Rectangle) *image.Gray16
	NewNRGBA(r image.Rectangle) *image.NRGBA
	NewNRGBA64(r image.Rectangle) *image.NRGBA64
	NewNYCbCrA(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.NYCbCrA
	NewPaletted(r image.Rectangle, p color.Palette) *image.Paletted
	NewRGBA(r image.Rectangle) *image.RGBA
	NewRGBA64(r image.Rectangle) *image.RGBA64
	NewUniform(c color.Color) *image.Uniform
	NewYCbCr(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *image.YCbCr
	Pt(X int, Y int) image.Point
	Rect(x0 int, y0 int, x1 int, y1 int) image.Rectangle
	RegisterFormat(name string, magic string, decode func(io.Reader) (image.Image, error), decodeConfig func(io.Reader) (image.Config, error))
}

Directories

Path Synopsis
Package color provides a mockable wrapper for image/color.
Package color provides a mockable wrapper for image/color.
Package draw provides a mockable wrapper for image/draw.
Package draw provides a mockable wrapper for image/draw.
Package gif provides a mockable wrapper for image/gif.
Package gif provides a mockable wrapper for image/gif.
Package jpeg provides a mockable wrapper for image/jpeg.
Package jpeg provides a mockable wrapper for image/jpeg.
Package png provides a mockable wrapper for image/png.
Package png provides a mockable wrapper for image/png.

Jump to

Keyboard shortcuts

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