Versions in this module Expand all Collapse all v0 v0.0.7 Aug 30, 2022 Changes in this version + const DefaultDPI + var Default3x3Kernel = [9]float64 + var Default5x5Kernel = [25]float64 + func CalculatePt(targetSize image.Point, watermark image.Point, anchor imaging.Anchor, ...) image.Point + func CalculatePt2(targetSize image.Point, watermark image.Point, anchor imaging.Anchor, ...) image.Point + func NewRGBA(r image.Rectangle) *image.RGBA + func Save(img *Image, out io.Writer, format imaging.Format, opts ...imaging.EncodeOption) error + func SaveToFile(img *Image, filename string, opts ...imaging.EncodeOption) error + type Image struct + func NewImage(src image.Image) *Image + func OpenLocalFile(filename string, opts ...imaging.DecodeOption) (*Image, error) + func OpenReader(src io.Reader, opts ...imaging.DecodeOption) (*Image, error) + func Overlay(background Image, img Image, pos image.Point, opacity float64) *Image + func Paste(background Image, img Image, pos image.Point) *Image + func (img *Image) AddWaterMark(watermark *Image, anchor imaging.Anchor, marginX int, marginY int, ...) *Image + func (img *Image) AdjustBrightness(percentage float64) *Image + func (img *Image) AdjustContrast(percentage float64) *Image + func (img *Image) AdjustGamma(gamma float64) *Image + func (img *Image) AdjustSaturation(percentage float64) *Image + func (img *Image) AdjustSigmoid(midpoint float64, factor float64) *Image + func (img *Image) Blur(sigma float64) *Image + func (img *Image) Clone() *Image + func (img *Image) Compress(quality int) *Image + func (img *Image) Convolve3x3(kernel [9]float64) *Image + func (img *Image) Convolve5x5(kernel [25]float64) *Image + func (img *Image) Crop(width int, height int, anchor imaging.Anchor) *Image + func (img *Image) DrawText(content string, fc *fontx.FontConfig, m font.Metrics, anchor imaging.Anchor, ...) (*Image, error) + func (img *Image) Fill(width int, height int, anchor imaging.Anchor, filter imaging.ResampleFilter) *Image + func (img *Image) Fit(width int, height int, filter imaging.ResampleFilter) *Image + func (img *Image) GetSource() image.Image + func (img *Image) Gray() *Image + func (img *Image) Invert() *Image + func (img *Image) Overlay(top *Image, pos image.Point, opacity float64) *Image + func (img *Image) Paste(top *Image, pos image.Point) *Image + func (img *Image) Resize(width int, height int, filter imaging.ResampleFilter) *Image + func (img *Image) Rotate(angle float64, bgColor color.Color) *Image + func (img *Image) SetSource(src image.Image) *Image + func (img *Image) Sharpen(percentage float64) *Image + func (img *Image) Transverse() *Image