Documentation ¶
Index ¶
- func EmbossGray(img *image.Gray) (*image.Gray, error)
- func EmbossRGBA(img *image.RGBA) (*image.Gray, error)
- func InvertGray(img *image.Gray) *image.Gray
- func InvertRGBA(img *image.RGBA) *image.RGBA
- func PixelateGray(img *image.Gray, factor float64) (*image.Gray, error)
- func PixelateRGBA(img *image.RGBA, factor float64) (*image.RGBA, error)
- func Sepia(img *image.RGBA) *image.RGBA
- func SharpenGray(img *image.Gray) (*image.Gray, error)
- func SharpenRGBA(img *image.RGBA) (*image.RGBA, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmbossGray ¶
EmbossGray takes a grayscale image and returns a copy of the image in which each pixel has been replaced either by a highlight or a shadow representation.
func EmbossRGBA ¶
EmbossRGBA takes an RGBA image and returns a grayscale image in which each pixel has been replaced either by a highlight or a shadow representation.
func InvertGray ¶
InvertGray takes a grayscale image and return its inverted grayscale image.
func InvertRGBA ¶
InvertRGBA takes an RGBA image and return its inverted RGBA image.
func PixelateGray ¶
PixelateGray enlarges the pixels of a grayscale image. The factor value specifies how much should be the pixels enlarged. Example of usage:
res, err := effects.PixelateGray(img, 5.0)
func PixelateRGBA ¶
PixelateRGBA enlarges the pixels of a RGBA image. The factor value specifies how much should be the pixels enlarged. Example of usage:
res, err := effects.PixelateRGBA(img, 5.0)
func SharpenGray ¶
SharpenGray takes a grayscale image and returns another grayscale image where each edge is added to the original image.
Types ¶
This section is empty.