Documentation ¶
Index ¶
- type ImageTransform
- func (t *ImageTransform) Buffer() (*bytes.Buffer, error)
- func (t *ImageTransform) Crop(x, y, w, h int) *ImageTransform
- func (t *ImageTransform) CropRect(rect image.Rectangle) *ImageTransform
- func (t *ImageTransform) Resize(w, h int) *ImageTransform
- func (t *ImageTransform) Save(filePath string) error
- func (t *ImageTransform) Write(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageTransform ¶
func NewImageFileTransform ¶
func NewImageFileTransform(filename string) (*ImageTransform, error)
func NewImageTransform ¶
func (*ImageTransform) Crop ¶
func (t *ImageTransform) Crop(x, y, w, h int) *ImageTransform
func (*ImageTransform) CropRect ¶
func (t *ImageTransform) CropRect(rect image.Rectangle) *ImageTransform
func (*ImageTransform) Resize ¶
func (t *ImageTransform) Resize(w, h int) *ImageTransform
func (*ImageTransform) Save ¶
func (t *ImageTransform) Save(filePath string) error
func (*ImageTransform) Write ¶
func (t *ImageTransform) Write(filename string) error
Click to show internal directories.
Click to hide internal directories.