Documentation ¶
Index ¶
- Constants
- func GetFonts() (list []string)
- func ImageToGifBuffer(p *Image) []byte
- func ImageToJpegBuffer(p *Image, quality int) []byte
- func ImageToPngBuffer(p *Image) []byte
- func ImageToWebpBuffer(p *Image, quantization int) []byte
- type Color
- type Font
- type Image
- func Create(sx, sy int) *Image
- func CreateFromGif(infile string) *Image
- func CreateFromGifPtr(imagebuffer []byte) *Image
- func CreateFromJpeg(infile string) *Image
- func CreateFromJpegPtr(imagebuffer []byte) *Image
- func CreateFromPng(infile string) *Image
- func CreateFromPngPtr(imagebuffer []byte) *Image
- func CreateFromWbmp(infile string) *Image
- func CreateFromWebpPtr(imagebuffer []byte) *Image
- func CreateFromXpm(infile string) (im *Image)
- func CreateImageFromWebp(infile string) *Image
- func CreateImageFromXbm(infile string) *Image
- func CreateTrueColor(sx, sy int) *Image
- func (p *Image) AABlend()
- func (p *Image) AlphaBlending(blendmode bool)
- func (p *Image) Arc(cx, cy, w, h, s, e int, color Color)
- func (p *Image) Brightness(brightness int)
- func (p *Image) Char(font *Font, x, y int, c string, color Color)
- func (p *Image) CharUp(font *Font, x, y int, c string, color Color)
- func (p *Image) Color(r, g, b, a int)
- func (p *Image) ColorAllocate(r, g, b int) Color
- func (p *Image) ColorAllocateAlpha(r, g, b, a int) Color
- func (p *Image) ColorAt(x, y int) Color
- func (p *Image) ColorClosest(r, g, b int) Color
- func (p *Image) ColorClosestAlpha(r, g, b, a int) Color
- func (p *Image) ColorClosestHWB(r, g, b int) Color
- func (p *Image) ColorDeallocate(color Color)
- func (p *Image) ColorExact(r, g, b int) Color
- func (p *Image) ColorExactAlpha(r, g, b, a int) Color
- func (p *Image) ColorResolve(r, g, b int) Color
- func (p *Image) ColorResolveAlpha(r, g, b, a int) Color
- func (p *Image) ColorTransparent(color Color)
- func (p *Image) ColorsForIndex(index Color) map[string]int
- func (p *Image) ColorsTotal() int
- func (p *Image) Contrast(contrast float64)
- func (p *Image) Convolution(filter [3][3]float32, filter_div, offset float32)
- func (p *Image) Copy(dst *Image, dstX, dstY, srcX, srcY, w, h int)
- func (p *Image) CopyMerge(dst *Image, dstX, dstY, srcX, srcY, w, h, pct int)
- func (p *Image) CopyMergeGray(dst *Image, dstX, dstY, srcX, srcY, w, h, pct int)
- func (p *Image) CopyResampled(dst *Image, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH int)
- func (p *Image) CopyResized(dst *Image, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH int)
- func (p *Image) CopyRotated(dst *Image, dstX, dstY, srcX, srcY, srcWidth, srcHeight, angle int)
- func (p *Image) DashedLine(x1, y1, x2, y2 int, color Color)
- func (p *Image) Destroy()
- func (p *Image) EdgeDetectQuick()
- func (p *Image) Ellipse(cx, cy, w, h int, color Color)
- func (p *Image) Emboss()
- func (p *Image) Fill(x, y int, c Color)
- func (p *Image) FillToBorder(x, y, border, color Color)
- func (p *Image) FilledArc(cx, cy, w, h, s, e, color Color, style Style)
- func (p *Image) FilledEllipse(cx, cy, w, h int, color Color)
- func (p *Image) FilledPolygon(points []Point, c Color)
- func (p *Image) FilledRectangle(x1, y1, x2, y2 int, color Color)
- func (p *Image) GaussianBlur()
- func (p *Image) GetInterlaced() bool
- func (p *Image) Gif(out string)
- func (p *Image) GrayScale()
- func (p *Image) Interlace(interlacemode bool)
- func (p *Image) Jpeg(out string, quality int)
- func (p *Image) Line(x1, y1, x2, y2 int, color Color)
- func (p *Image) MeanRemoval()
- func (p *Image) Negate()
- func (p *Image) OpenPolygon(points []Point, c Color)
- func (p *Image) PaletteCopy(dst *Image)
- func (p *Image) Png(out string)
- func (p *Image) Polygon(points []Point, c Color)
- func (p *Image) Rectangle(x1, y1, x2, y2 int, color Color)
- func (p *Image) SaveAlpha(saveflag bool)
- func (p *Image) SetAntiAliased(c Color)
- func (p *Image) SetAntiAliasedDontBlend(c Color, dont_blend bool)
- func (p *Image) SetBrush(brush Image)
- func (p *Image) SetPixel(x, y int, color Color)
- func (p *Image) SetStyle(style ...Color)
- func (p *Image) SetThickness(thickness int)
- func (p *Image) SetTile(tile Image)
- func (p *Image) Sharpen(pct int)
- func (p *Image) Smooth(weight float32)
- func (p *Image) SmoothFilledArc(cx, cy, w, h int, color Color, start, stop float64)
- func (p *Image) SmoothFilledEllipse(cx, cy, w, h int, color Color)
- func (p *Image) SquareToCircle(radius int) *Image
- func (img *Image) StackBlur(radius int, keepalpha bool)
- func (p *Image) String(font *Font, x, y int, s string, color Color)
- func (p *Image) StringFT(fg Color, fontname string, ptsize, angle float64, x, y int, str string) (brect [8]int32)
- func (p *Image) StringUp(font *Font, x, y int, s string, color Color)
- func (p *Image) Sx() int
- func (p *Image) Sy() int
- func (p *Image) TrueColor() bool
- func (p *Image) TrueColorToPalette(ditherFlag bool, colorsWanted int)
- func (p *Image) Wbmp(out string, foreground Color)
- func (p *Image) Webp(out string, quantization int)
- type Point
- type Style
Constants ¶
View Source
const ( FONTTINY = iota FONTSMALL FONTMEDIUMBOLD FONTLARGE FONTGIANT )
Variables ¶
This section is empty.
Functions ¶
func ImageToGifBuffer ¶
func ImageToJpegBuffer ¶
func ImageToPngBuffer ¶
func ImageToWebpBuffer ¶
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func CreateFromGif ¶
func CreateFromGifPtr ¶
func CreateFromJpeg ¶
func CreateFromJpegPtr ¶
func CreateFromPng ¶
func CreateFromPngPtr ¶
func CreateFromWbmp ¶
func CreateFromWebpPtr ¶
func CreateFromXpm ¶
func CreateImageFromWebp ¶
func CreateImageFromXbm ¶
func CreateTrueColor ¶
func (*Image) AlphaBlending ¶
func (*Image) Brightness ¶
func (*Image) ColorAllocate ¶
func (*Image) ColorClosest ¶
func (*Image) ColorClosestHWB ¶
func (*Image) ColorDeallocate ¶
func (*Image) ColorExact ¶
func (*Image) ColorExactAlpha ¶
func (*Image) ColorResolve ¶
func (*Image) ColorTransparent ¶
func (*Image) ColorsForIndex ¶
func (*Image) ColorsTotal ¶
func (*Image) Convolution ¶
func (*Image) CopyMergeGray ¶
func (*Image) CopyResampled ¶
func (*Image) CopyResized ¶
func (*Image) CopyRotated ¶
func (*Image) DashedLine ¶
func (*Image) EdgeDetectQuick ¶
func (p *Image) EdgeDetectQuick()
func (*Image) FillToBorder ¶
func (*Image) FilledEllipse ¶
func (*Image) FilledPolygon ¶
func (*Image) FilledRectangle ¶
func (*Image) GaussianBlur ¶
func (p *Image) GaussianBlur()
func (*Image) GetInterlaced ¶
func (*Image) MeanRemoval ¶
func (p *Image) MeanRemoval()
func (*Image) OpenPolygon ¶
func (*Image) PaletteCopy ¶
func (*Image) SetAntiAliased ¶
func (*Image) SetAntiAliasedDontBlend ¶
func (*Image) SetThickness ¶
func (*Image) SmoothFilledArc ¶
func (*Image) SmoothFilledEllipse ¶
func (*Image) SquareToCircle ¶
Click to show internal directories.
Click to hide internal directories.