Documentation ¶
Index ¶
- Variables
- func EncodeJPEG(w io.Writer, img *Image, quality int) (err error)
- func EncodePNG(w io.Writer, img *Image, compression int) (err error)
- func Validate(r io.Reader) (err error)
- type Image
- func (img *Image) At(x, y int) color.Color
- func (img *Image) Bounds() image.Rectangle
- func (img *Image) Bytes() []byte
- func (img *Image) ColorModel() color.Model
- func (img *Image) Copy() *Image
- func (img *Image) Fit(width, height int) (err error)
- func (img *Image) FlipH() error
- func (img *Image) FlipV() error
- func (img *Image) Release()
- func (img *Image) Reorient() (err error)
- func (img *Image) Resize(width, height int) (err error)
- func (img *Image) Rotate180() error
- func (img *Image) Rotate270() (err error)
- func (img *Image) Rotate90() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var PixelLimit = 75000000 // 75MP
Functions ¶
func EncodeJPEG ¶
EncodeJPEG writes the Image img to w in JPEG 4:2:0 baseline format with the given quality, from 1 - 100.
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) ColorModel ¶
Click to show internal directories.
Click to hide internal directories.