Versions in this module Expand all Collapse all v0 v0.0.2 May 1, 2021 v0.0.1 Apr 30, 2021 Changes in this version + type CTOpts struct + BlurKernelSize int + DebugPath string + EdgeThreshold int + OilFilterSize int + OilLevels int + type Effect interface + Apply func(img *Image, numRoutines int) (*Image, error) + func NewBrightness(offset int) Effect + func NewCartoon(opts CTOpts) Effect + func NewGaussian(kernelSize int, sigma float64) Effect + func NewGrayscale(algo GSAlgo) Effect + func NewOilPainting(filterSize, levels int) Effect + func NewPencil(blurFactor int) Effect + func NewPixelate(blockSize int) Effect + func NewSobel(threshold int, invert bool) Effect + type GSAlgo int + const GSAVERAGE + const GSLIGHTNESS + const GSLUMINOSITY + type Image struct + Bounds Rect + Height int + Width int + func LoadImage(path string) (*Image, error) + func ParseImage(img image.Image) *Image + func (i *Image) ClipToBounds() *Image + func (i *Image) GetImage() *image.RGBA + func (i *Image) Save(outPath string, opts SaveOpts) error + func (i *Image) SetImage(img *image.RGBA) *Image + type Pipeline struct + func (p *Pipeline) Add(e Effect, callback func(*Image)) + func (p *Pipeline) Run(img *Image, numRoutines int) (*Image, error) + type Rect struct + Height int + Width int + X int + Y int + func (r Rect) Intersect(r2 Rect) Rect + func (r Rect) IsEmpty() bool + func (r Rect) String() string + func (r Rect) ToImageRect() image.Rectangle + type SaveOpts struct + ClipToBounds bool + JPEGCompression int