Documentation ¶
Overview ¶
Based on https://cs.opensource.google/go/x/image/+/6944b10b:bmp/reader.go and https://cs.opensource.google/go/x/image/+/6944b10b:bmp/writer.go
Index ¶
- func Cleanup()
- func DisableLoadSupport(it imagetype.Type)
- func DisableSaveSupport(it imagetype.Type)
- func Error() error
- func GetAllocs() float64
- func GetMem() float64
- func GetMemHighwater() float64
- func GifResolutionLimit() int
- func Health() error
- func Init() error
- func ResetLoadSupport()
- func ResetSaveSupport()
- func Shutdown()
- func SupportsLoad(it imagetype.Type) bool
- func SupportsSave(it imagetype.Type) bool
- type Color
- type Image
- func (img *Image) ApplyFilters(blurSigma, sharpSigma float32, pixelatePixels int) error
- func (img *Image) ApplyWatermark(wm *Image, left, top int, opacity float64) error
- func (img *Image) Arrayjoin(in []*Image) error
- func (img *Image) CastUchar() error
- func (img *Image) Clear()
- func (img *Image) Colorspace(colorspace C.VipsInterpretation) error
- func (img *Image) ColourProfileImported() bool
- func (img *Image) CopyMemory() error
- func (img *Image) Crop(left, top, width, height int) error
- func (img *Image) Embed(width, height int, offX, offY int) error
- func (img *Image) ExportColourProfile() error
- func (img *Image) ExportColourProfileToSRGB() error
- func (img *Image) Extract(out *Image, left, top, width, height int) error
- func (img *Image) Flatten(bg Color) error
- func (img *Image) Flip() error
- func (img *Image) GetBlob(name string) ([]byte, error)
- func (img *Image) GetDouble(name string) (float64, error)
- func (img *Image) GetDoubleDefault(name string, def float64) (float64, error)
- func (img *Image) GetInt(name string) (int, error)
- func (img *Image) GetIntDefault(name string, def int) (int, error)
- func (img *Image) GetIntSlice(name string) ([]int, error)
- func (img *Image) GetIntSliceDefault(name string, def []int) ([]int, error)
- func (img *Image) HasAlpha() bool
- func (img *Image) Height() int
- func (img *Image) ImportColourProfile() error
- func (img *Image) IsAnimated() bool
- func (img *Image) IsLinear() bool
- func (img *Image) IsRGB() bool
- func (img *Image) LineCache(lines int) error
- func (img *Image) LinearColourspace() error
- func (img *Image) Load(imgdata *imagedata.ImageData, shrink int, scale float64, pages int) error
- func (img *Image) LoadThumbnail(imgdata *imagedata.ImageData) error
- func (img *Image) Orientation() C.int
- func (img *Image) Pages() int
- func (img *Image) Rad2Float() error
- func (img *Image) RemoveColourProfile() error
- func (img *Image) Replicate(width, height int, centered bool) error
- func (img *Image) Resize(wscale, hscale float64) error
- func (img *Image) RgbColourspace() error
- func (img *Image) Rotate(angle int) error
- func (img *Image) Save(imgtype imagetype.Type, quality int) (*imagedata.ImageData, error)
- func (img *Image) SetBlob(name string, value []byte)
- func (img *Image) SetDouble(name string, value float64)
- func (img *Image) SetInt(name string, value int)
- func (img *Image) SetIntSlice(name string, value []int)
- func (img *Image) SmartCrop(width, height int) error
- func (img *Image) Strip(keepExifCopyright bool) error
- func (img *Image) StripAll() error
- func (img *Image) Swap(in *Image)
- func (img *Image) TransformColourProfile() error
- func (img *Image) Trim(threshold float64, smart bool, color Color, equalHor bool, equalVer bool) error
- func (img *Image) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLoadSupport ¶
func DisableSaveSupport ¶
func GetMemHighwater ¶
func GetMemHighwater() float64
func GifResolutionLimit ¶ added in v3.7.0
func GifResolutionLimit() int
func ResetLoadSupport ¶
func ResetLoadSupport()
func ResetSaveSupport ¶
func ResetSaveSupport()
func SupportsLoad ¶
func SupportsSave ¶
Types ¶
type Image ¶
func (*Image) ApplyFilters ¶ added in v3.7.1
func (*Image) ApplyWatermark ¶
func (*Image) Colorspace ¶
func (img *Image) Colorspace(colorspace C.VipsInterpretation) error
func (*Image) ColourProfileImported ¶ added in v3.24.0
func (*Image) CopyMemory ¶
func (*Image) ExportColourProfile ¶
func (*Image) ExportColourProfileToSRGB ¶
func (*Image) GetDoubleDefault ¶ added in v3.16.0
func (*Image) GetIntSliceDefault ¶
func (*Image) ImportColourProfile ¶
func (*Image) IsAnimated ¶
func (*Image) LinearColourspace ¶
func (*Image) LoadThumbnail ¶ added in v3.5.0
func (*Image) Orientation ¶
func (*Image) RemoveColourProfile ¶
func (*Image) RgbColourspace ¶
func (*Image) SetIntSlice ¶
func (*Image) TransformColourProfile ¶
Click to show internal directories.
Click to hide internal directories.