Documentation ¶
Index ¶
- func Resample(m image.Image, r image.Rectangle, w, h int) image.Image
- func Resize(m image.Image, sizeStr string) image.Image
- type SizeSpec
- func (self SizeSpec) Height() int
- func (self SizeSpec) IsFull() bool
- func (self SizeSpec) IsLandscape() bool
- func (self SizeSpec) IsPortrait() bool
- func (self SizeSpec) IsSquare() bool
- func (self SizeSpec) MaxDimension() int
- func (self SizeSpec) MinDimension() int
- func (self SizeSpec) String() string
- func (self *SizeSpec) TargetWH(rect image.Rectangle) (int, int)
- func (self SizeSpec) ToImageMagickSpec() string
- func (self *SizeSpec) ToRect(rect image.Rectangle) image.Rectangle
- func (self SizeSpec) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SizeSpec ¶
type SizeSpec struct {
// contains filtered or unexported fields
}
func MakeSizeSpec ¶
func (SizeSpec) IsLandscape ¶
func (SizeSpec) IsPortrait ¶
func (SizeSpec) MaxDimension ¶
func (SizeSpec) MinDimension ¶
func (*SizeSpec) TargetWH ¶
size of the image that will result from resizing one of the specified rect to this SizeSpec
func (SizeSpec) ToImageMagickSpec ¶
Click to show internal directories.
Click to hide internal directories.