Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode reads an image from a file and returns the image.Image. If the file cannot be read, an error is returned.
func Resize ¶
Resizes an image to the specified width and height. If either width or height is 0, the aspect ratio is maintained. If the output of the resize has an uneven height, a final resize is done to make it even. This prevents a line of black pixels from appearing at the bottom of the image when rendered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.