Documentation
¶
Overview ¶
Package imgutil provides an easy way to take an image and convert any color in it into another color. This also allows the conversion of a color image into a gray scale image. Supports the image formats image supports such as png and jpeg. This exclusively works with RGBA's from image.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorConverter ¶
ColorConverter compares a color to another. IF it matches, return the new color.
func ConvertImageColor ¶
ConvertImageColor takes an image and a color model and returns a copy of the image's color with provided replacement color.
func HexToRBGA ¶
HexToRBGA returns a color.Color if it is provided with a hex code in the correct format. https://en.wikipedia.org/wiki/Web_colors
func ResizeImage ¶
ResizeImage takes the dimensions of an image and then the image and returns a new image resized to that dimension. If either width or height is set as 0, the aspect ratio will be preserved and the counter part will be used as a determining factor for the size. Uses github.com/nfnt/resize
Types ¶
This section is empty.