Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Width, Height int
Format string
Modified bool // true if Decode actually rotated or flipped the image.
}
Config is like the standard library's image.Config as used by DecodeConfig.
type DecodeOpts ¶
type DecodeOpts struct { // Rotate specifies how to rotate the image. // If nil, the image is rotated automatically based on EXIF metadata. // If an int, Rotate is the number of degrees to rotate // counter clockwise and must be one of 0, 90, -90, 180, or // -180. Rotate interface{} // Flip specifies how to flip the image. // If nil, the image is flipped automatically based on EXIF metadata. // Otherwise, Flip is a FlipDirection bitfield indicating how to flip. Flip interface{} // MaxWidgth and MaxHeight optionally specify bounds on the // final image's size. MaxWidth, MaxHeight int }
type FlipDirection ¶
type FlipDirection int
The FlipDirection type is used by the Flip option in DecodeOpts to indicate in which direction to flip an image.
const ( FlipVertical FlipDirection = 1 << iota FlipHorizontal )
FlipVertical and FlipHorizontal are two possible FlipDirections values to indicate in which direction an image will be flipped.
Click to show internal directories.
Click to hide internal directories.