Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Scales the source to fit the target while keeping the same aspect ratio. This may cause the source to be smaller than the // target in one direction. Fit = iota // Scales the source to fill the target while keeping the same aspect ratio. This may cause the source to be larger than the // target in one direction. Fill // Scales the source to fill the target in the x direction while keeping the same aspect ratio. This may cause the source to be // smaller or larger than the target in the y direction. FillX // Scales the source to fill the target in the y direction while keeping the same aspect ratio. This may cause the source to be // smaller or larger than the target in the x direction. FillY // Scales the source to fill the target. This may cause the source to not keep the same aspect ratio. Stretch // Scales the source to fill the target in the x direction, without changing the y direction. This may cause the source to not // keep the same aspect ratio. StretchX // Scales the source to fill the target in the y direction, without changing the x direction. This may cause the source to not // keep the same aspect ratio. StretchY // The source is not scaled. None )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.