go-gd: github.com/bolknote/go-gd Index | Files | Directories

package gd

import "github.com/bolknote/go-gd"

Index

Package Files

gd.go gdcompat.go

Constants

const (
    FONTTINY = iota
    FONTSMALL
    FONTMEDIUMBOLD
    FONTLARGE
    FONTGIANT
)

func GetFonts Uses

func GetFonts() (list []string)

func ImageToGifBuffer Uses

func ImageToGifBuffer(p *Image) []byte

func ImageToJpegBuffer Uses

func ImageToJpegBuffer(p *Image, quality int) []byte

func ImageToPngBuffer Uses

func ImageToPngBuffer(p *Image) []byte

func ImageToWebpBuffer Uses

func ImageToWebpBuffer(p *Image, quantization int) []byte

type Color Uses

type Color int

type Font Uses

type Font struct {
    // contains filtered or unexported fields
}

func GetFont Uses

func GetFont(size byte) *Font

type Image Uses

type Image struct {
    // contains filtered or unexported fields
}

func Create Uses

func Create(sx, sy int) *Image

http://php.net/manual/en/function.imagecreate.php

func CreateFromGif Uses

func CreateFromGif(infile string) *Image

http://php.net/manual/en/function.imagecreatefromgif.php

func CreateFromGifPtr Uses

func CreateFromGifPtr(imagebuffer []byte) *Image

func CreateFromJpeg Uses

func CreateFromJpeg(infile string) *Image

http://php.net/manual/en/function.imagecreatefromjpeg.php

func CreateFromJpegPtr Uses

func CreateFromJpegPtr(imagebuffer []byte) *Image

func CreateFromPng Uses

func CreateFromPng(infile string) *Image

http://php.net/manual/en/function.imagecreatefrompng.php

func CreateFromPngPtr Uses

func CreateFromPngPtr(imagebuffer []byte) *Image

func CreateFromWbmp Uses

func CreateFromWbmp(infile string) *Image

http://php.net/manual/en/function.imagecreatefromwbmp.php

func CreateFromWebpPtr Uses

func CreateFromWebpPtr(imagebuffer []byte) *Image

func CreateFromXpm Uses

func CreateFromXpm(infile string) (im *Image)

http://php.net/manual/en/function.imagecreatefromxpm.php

func CreateImageFromWebp Uses

func CreateImageFromWebp(infile string) *Image

http://php.net/manual/en/function.imagecreatefromwebp.php

func CreateImageFromXbm Uses

func CreateImageFromXbm(infile string) *Image

http://php.net/manual/en/function.imagecreatefromxbm.php

func CreateTrueColor Uses

func CreateTrueColor(sx, sy int) *Image

http://php.net/manual/en/function.imagecreatetruecolor.php

func (*Image) AABlend Uses

func (p *Image) AABlend()

func (*Image) AlphaBlending Uses

func (p *Image) AlphaBlending(blendmode bool)

http://php.net/manual/en/function.imagealphablending.php

func (*Image) Arc Uses

func (p *Image) Arc(cx, cy, w, h, s, e int, color Color)

http://php.net/manual/en/function.imagearc.php

func (*Image) Brightness Uses

func (p *Image) Brightness(brightness int)

func (*Image) Char Uses

func (p *Image) Char(font *Font, x, y int, c string, color Color)

http://php.net/manual/en/function.imagechar.php

func (*Image) CharUp Uses

func (p *Image) CharUp(font *Font, x, y int, c string, color Color)

http://php.net/manual/en/function.imagecharup.php

func (*Image) Color Uses

func (p *Image) Color(r, g, b, a int)

func (*Image) ColorAllocate Uses

func (p *Image) ColorAllocate(r, g, b int) Color

http://php.net/manual/en/function.imagecolorallocate.php

func (*Image) ColorAllocateAlpha Uses

func (p *Image) ColorAllocateAlpha(r, g, b, a int) Color

http://php.net/manual/en/function.imagecolorallocatealpha.php

func (*Image) ColorAt Uses

func (p *Image) ColorAt(x, y int) Color

http://php.net/manual/en/function.imagecolorat.php

func (*Image) ColorClosest Uses

func (p *Image) ColorClosest(r, g, b int) Color

http://php.net/manual/en/function.imagecolorclosest.php

func (*Image) ColorClosestAlpha Uses

func (p *Image) ColorClosestAlpha(r, g, b, a int) Color

http://php.net/manual/en/function.imagecolorclosestalpha.php

func (*Image) ColorClosestHWB Uses

func (p *Image) ColorClosestHWB(r, g, b int) Color

http://php.net/manual/en/function.imagecolorclosesthwb.php

func (*Image) ColorDeallocate Uses

func (p *Image) ColorDeallocate(color Color)

http://php.net/manual/en/function.imagecolordeallocate.php

func (*Image) ColorExact Uses

func (p *Image) ColorExact(r, g, b int) Color

http://php.net/manual/en/function.imagecolorexact.php

func (*Image) ColorExactAlpha Uses

func (p *Image) ColorExactAlpha(r, g, b, a int) Color

http://php.net/manual/en/function.imagecolorexactalpha.php

func (*Image) ColorResolve Uses

func (p *Image) ColorResolve(r, g, b int) Color

http://php.net/manual/en/function.imagecolorresolve.php

func (*Image) ColorResolveAlpha Uses

func (p *Image) ColorResolveAlpha(r, g, b, a int) Color

http://php.net/manual/en/function.imagecolorresolvealpha.php

func (*Image) ColorTransparent Uses

func (p *Image) ColorTransparent(color Color)

http://php.net/manual/en/function.imagecolortransparent.php

func (*Image) ColorsForIndex Uses

func (p *Image) ColorsForIndex(index Color) map[string]int

http://php.net/manual/en/function.imagecolorsforindex.php

func (*Image) ColorsTotal Uses

func (p *Image) ColorsTotal() int

http://php.net/manual/en/function.imagecolorstotal.php

func (*Image) Contrast Uses

func (p *Image) Contrast(contrast float64)

func (*Image) Convolution Uses

func (p *Image) Convolution(filter [3][3]float32, filter_div, offset float32)

func (*Image) Copy Uses

func (p *Image) Copy(dst *Image, dstX, dstY, srcX, srcY, w, h int)

http://php.net/manual/en/function.imagecopy.php

func (*Image) CopyMerge Uses

func (p *Image) CopyMerge(dst *Image, dstX, dstY, srcX, srcY, w, h, pct int)

http://php.net/manual/en/function.imagecopymerge.php

func (*Image) CopyMergeGray Uses

func (p *Image) CopyMergeGray(dst *Image, dstX, dstY, srcX, srcY, w, h, pct int)

http://php.net/manual/en/function.imagecopymergegray.php

func (*Image) CopyResampled Uses

func (p *Image) CopyResampled(dst *Image, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH int)

http://php.net/manual/en/function.imagecopyresampled.php

func (*Image) CopyResized Uses

func (p *Image) CopyResized(dst *Image, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH int)

http://php.net/manual/en/function.imagecopyresized.php

func (*Image) CopyRotated Uses

func (p *Image) CopyRotated(dst *Image, dstX, dstY, srcX, srcY, srcWidth, srcHeight, angle int)

func (*Image) DashedLine Uses

func (p *Image) DashedLine(x1, y1, x2, y2 int, color Color)

http://php.net/manual/en/function.imagedashedline.php

func (*Image) Destroy Uses

func (p *Image) Destroy()

http://php.net/manual/en/function.imagedestroy.php

func (*Image) EdgeDetectQuick Uses

func (p *Image) EdgeDetectQuick()

func (*Image) Ellipse Uses

func (p *Image) Ellipse(cx, cy, w, h int, color Color)

http://php.net/manual/en/function.imageellipse.php

func (*Image) Emboss Uses

func (p *Image) Emboss()

func (*Image) Fill Uses

func (p *Image) Fill(x, y int, c Color)

http://php.net/manual/en/function.imagefill.php

func (*Image) FillToBorder Uses

func (p *Image) FillToBorder(x, y, border, color Color)

http://php.net/manual/en/function.imagefilltoborder.php

func (*Image) FilledArc Uses

func (p *Image) FilledArc(cx, cy, w, h, s, e, color Color, style Style)

http://php.net/manual/en/function.imagefilledarc.php

func (*Image) FilledEllipse Uses

func (p *Image) FilledEllipse(cx, cy, w, h int, color Color)

http://php.net/manual/en/function.imagefilledellipse.php

func (*Image) FilledPolygon Uses

func (p *Image) FilledPolygon(points []Point, c Color)

http://php.net/manual/en/function.imagefilledpolygon.php

func (*Image) FilledRectangle Uses

func (p *Image) FilledRectangle(x1, y1, x2, y2 int, color Color)

http://php.net/manual/en/function.imagefilledrectangle.php

func (*Image) GaussianBlur Uses

func (p *Image) GaussianBlur()

func (*Image) GetInterlaced Uses

func (p *Image) GetInterlaced() bool

func (*Image) Gif Uses

func (p *Image) Gif(out string)

http://php.net/manual/en/function.imagegif.php

func (*Image) GrayScale Uses

func (p *Image) GrayScale()

func (*Image) Interlace Uses

func (p *Image) Interlace(interlacemode bool)

http://php.net/manual/en/function.imageinterlace.php

func (*Image) Jpeg Uses

func (p *Image) Jpeg(out string, quality int)

http://php.net/manual/en/function.imagejpeg.php

func (*Image) Line Uses

func (p *Image) Line(x1, y1, x2, y2 int, color Color)

http://php.net/manual/en/function.imageline.php

func (*Image) MeanRemoval Uses

func (p *Image) MeanRemoval()

func (*Image) Negate Uses

func (p *Image) Negate()

func (*Image) OpenPolygon Uses

func (p *Image) OpenPolygon(points []Point, c Color)

http://php.net/manual/en/function.imageopenpolygon.php

func (*Image) PaletteCopy Uses

func (p *Image) PaletteCopy(dst *Image)

http://php.net/manual/en/function.imagepalettecopy.php

func (*Image) Png Uses

func (p *Image) Png(out string)

http://php.net/manual/en/function.imagepng.php

func (*Image) Polygon Uses

func (p *Image) Polygon(points []Point, c Color)

http://php.net/manual/en/function.imagepolygon.php

func (*Image) Rectangle Uses

func (p *Image) Rectangle(x1, y1, x2, y2 int, color Color)

func (*Image) SaveAlpha Uses

func (p *Image) SaveAlpha(saveflag bool)

http://php.net/manual/en/function.imagesavealpha.php

func (*Image) SetAntiAliased Uses

func (p *Image) SetAntiAliased(c Color)

func (*Image) SetAntiAliasedDontBlend Uses

func (p *Image) SetAntiAliasedDontBlend(c Color, dont_blend bool)

func (*Image) SetBrush Uses

func (p *Image) SetBrush(brush Image)

http://php.net/manual/en/function.imagesetbrush.php

func (*Image) SetPixel Uses

func (p *Image) SetPixel(x, y int, color Color)

http://php.net/manual/en/function.imagesetpixel.php

func (*Image) SetStyle Uses

func (p *Image) SetStyle(style ...Color)

http://php.net/manual/en/function.imagesetstyle.php

func (*Image) SetThickness Uses

func (p *Image) SetThickness(thickness int)

http://php.net/manual/en/function.imagesetthickness.php

func (*Image) SetTile Uses

func (p *Image) SetTile(tile Image)

http://php.net/manual/en/function.imagesettile.php

func (*Image) Sharpen Uses

func (p *Image) Sharpen(pct int)

func (*Image) Smooth Uses

func (p *Image) Smooth(weight float32)

func (*Image) SmoothFilledArc Uses

func (p *Image) SmoothFilledArc(cx, cy, w, h int, color Color, start, stop float64)

func (*Image) SmoothFilledEllipse Uses

func (p *Image) SmoothFilledEllipse(cx, cy, w, h int, color Color)

func (*Image) SquareToCircle Uses

func (p *Image) SquareToCircle(radius int) *Image

func (*Image) StackBlur Uses

func (img *Image) StackBlur(radius int, keepalpha bool)

Stack Blur Algorithm by Mario Klingemann <mario@quasimondo.com> "Go" language port by Evgeny Stepanischev http://bolknote.ru

func (*Image) String Uses

func (p *Image) String(font *Font, x, y int, s string, color Color)

http://php.net/manual/en/function.imagestring.php

func (*Image) StringFT Uses

func (p *Image) StringFT(fg Color, fontname string, ptsize, angle float64, x, y int, str string) (brect [8]int32)

func (*Image) StringUp Uses

func (p *Image) StringUp(font *Font, x, y int, s string, color Color)

http://php.net/manual/en/function.imagestringup.php

func (*Image) Sx Uses

func (p *Image) Sx() int

http://php.net/manual/en/function.imagesx.php

func (*Image) Sy Uses

func (p *Image) Sy() int

http://php.net/manual/en/function.imagesy.php

func (*Image) TrueColor Uses

func (p *Image) TrueColor() bool

func (*Image) TrueColorToPalette Uses

func (p *Image) TrueColorToPalette(ditherFlag bool, colorsWanted int)

http://php.net/manual/en/function.imagetruecolortopalette.php

func (*Image) Wbmp Uses

func (p *Image) Wbmp(out string, foreground Color)

http://php.net/manual/en/function.imagewbmp.php

func (*Image) Webp Uses

func (p *Image) Webp(out string, quantization int)

http://php.net/manual/en/function.imagewebp.php

type Point Uses

type Point struct {
    X, Y int
}

type Style Uses

type Style int
const (
    ARCPIE   Style = 0
    ARCCHORD Style = 1 << iota
    ARCNOFILL
    ARCEDGED
)

Directories

PathSynopsis
example

Package gd imports 8 packages (graph) and is imported by 3 packages. Updated 2018-05-08. Refresh now. Tools for package owners.