Documentation ¶
Index ¶
- Variables
- func CloneImage(img image.Image) *image.NRGBA
- func DecodeImage(r io.Reader) (image.Image, string, error)
- func Encode(w io.Writer, img image.Image, name string) error
- func EncodeImage(w io.Writer, img image.Image, format Format) error
- func NewImage(width, height int, fillColor color.Color) *image.NRGBA
- func OpenImage(filename string) (image.Image, string, error)
- func SaveImage(img image.Image, filename string) (err error)
- func UrlReader(url string) (image.Image, string, error)
- func UrlReaderToByte(url string) ([]byte, error)
- type Format
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedFormat = errors.New("imaging: unsupported image format")
)
Functions ¶
func CloneImage ¶
CloneImage returns a copy of the given image.
func DecodeImage ¶
Decode reads an image from r.
func EncodeImage ¶
EncodeImage writes the image img to w in the specified format (JPEG, PNG, GIF, BMP).
func NewImage ¶
NewImage creates a new image with the specified width and height, and fills it with the specified color.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package bmp implements a BMP image decoder and encoder.
|
Package bmp implements a BMP image decoder and encoder. |
Package resize implements various image resizing methods.
|
Package resize implements various image resizing methods. |
Click to show internal directories.
Click to hide internal directories.