Documentation
¶
Index ¶
- Variables
- func DrawAsNrgbaWithBackground(img image.Image, bg color.Color) *image.NRGBA
- func FlipVertically[T Boundser](img Boundser, data []byte)
- func IsTransparent(img *image.NRGBA) bool
- func MustDumpImage(img image.Image, filePath string)
- func Scale(img image.Image, xratio, yratio float32) image.Image
- func ToNRGBA(img image.Image) *image.NRGBA
- type Boundser
- type GrayAlpha
- type InvertedCanvas
- type VertFlipped
Constants ¶
This section is empty.
Variables ¶
View Source
var GrayAlphaModel grayAlphaModel
Functions ¶
func FlipVertically ¶
Rewrites the given input image flipping it vertically.
func IsTransparent ¶
func MustDumpImage ¶
Types ¶
type GrayAlpha ¶
type GrayAlpha struct {
// Pix holds the image's pixels, as gray values. The pixel at
// (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*2].
Pix []uint8
// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
Stride int
// Rect is the image's bounds.
Rect image.Rectangle
}
func NewGrayAlpha ¶
func (*GrayAlpha) ColorModel ¶
type InvertedCanvas ¶
func NewInvertedCanvas ¶
func NewInvertedCanvas(img draw.Image) *InvertedCanvas
type VertFlipped ¶
An image.Image that looks vertically flipped w.r.t. the embedded image.Image.
Click to show internal directories.
Click to hide internal directories.