Documentation
¶
Index ¶
- Constants
- type CropRectangle
- type Encode
- type Image
- func (p *Image) Base64() (string, error)
- func (p *Image) Bytes() ([]byte, error)
- func (p *Image) Crop(minX, minY, maxX, maxY int) image.Image
- func (p *Image) Data() image.Image
- func (p *Image) Format() string
- func (p *Image) Grayscale(method grayscale.MethodType) *Image
- func (p *Image) Inverse() *Image
- func (p *Image) MimeType() string
- func (p *Image) Monochrome(method grayscale.MethodType, threshold uint8) *Image
- func (p *Image) MonochromeAdaptive(thresholds [][]uint8) *Image
- func (p *Image) Save(path, filename string) error
- type ImageType
Constants ¶
View Source
const Version = "v0.5.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CropRectangle ¶ added in v0.4.0
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image is a data struct which embeds Go standard image library.
func DecodeBase64 ¶
func NewImageWithExtension ¶ added in v0.3.0
func (*Image) Monochrome ¶
func (p *Image) Monochrome(method grayscale.MethodType, threshold uint8) *Image
Monochrome converts given
func (*Image) MonochromeAdaptive ¶
Monochrome converts given
Source Files
¶
Click to show internal directories.
Click to hide internal directories.