MCPcopy Create free account

hub / github.com/bolknote/go-gd / functions

Functions325 in github.com/bolknote/go-gd

↓ 170 callersMethodcptr
()
pkg/gd/gd.go:89
↓ 71 callersMethodClose
Close releases the underlying gdImagePtr. Close is idempotent. After Close, methods that read state return their documented closed-image value (Width
pkg/gd/gd.go:118
↓ 34 callersMethodWidth
Width returns the image width in pixels, or 0 if the image is closed.
pkg/gd/gd.go:147
↓ 33 callersMethodHeight
Height returns the image height in pixels, or 0 if the image is closed.
pkg/gd/gd.go:156
↓ 32 callersFunctionallocColor
(t *testing.T, im *Image, r, g, b int)
pkg/gd/io_extra_test.go:30
↓ 31 callersFunctionSupportsFormat
(format Format, writing bool)
pkg/gd/features.go:47
↓ 30 callersFunctionwrapDecodedImage
(ptr C.gdImagePtr)
pkg/gd/gd.go:77
↓ 27 callersFunctionnewTrueColor
(t *testing.T, w, h int)
pkg/gd/io_extra_test.go:12
↓ 24 callersMethodcptr
()
pkg/gd/ioctx.go:81
↓ 21 callersMethodFill
(x, y int, color Color)
pkg/gd/draw.go:166
↓ 19 callersFunctionboolInt
(v bool)
pkg/gd/color.go:281
↓ 16 callersFunctionimageBytes
(ptr unsafe.Pointer, size C.int)
pkg/gd/io.go:223
↓ 15 callersFunctionSupportsFileType
(filename string, writing bool)
pkg/gd/features.go:51
↓ 14 callersFunctionwithReadFile
withReadFile invokes fn with an opened-for-read C FILE and always closes it afterwards, returning fn's error and ignoring close errors (the data, if a
pkg/gd/io.go:179
↓ 13 callersFunctiondecodeBuffer
(data []byte, fn func(C.int, unsafe.Pointer) C.gdImagePtr)
pkg/gd/io.go:216
↓ 13 callersFunctionwrapImage
(ptr C.gdImagePtr)
pkg/gd/gd.go:70
↓ 12 callersMethodc
()
pkg/gd/transform.go:304
↓ 12 callersFunctionwithWriteFile
withWriteFile invokes fn with an opened-for-write C FILE and propagates close errors so that buffered I/O failures (ENOSPC, EIO, ...) reach the caller
pkg/gd/io.go:193
↓ 11 callersMethodAllocateColor
(r, g, b int)
pkg/gd/color.go:44
↓ 11 callersFunctionmust
(err error)
examples/basic/main.go:34
↓ 10 callersFunctionNewTrueColor
NewTrueColor creates a truecolor image.
pkg/gd/gd.go:105
↓ 9 callersFunctionaffineFromC
(in [6]C.double)
pkg/gd/transform.go:312
↓ 9 callersFunctionassertRGB
(t *testing.T, got RGBA, r, g, b int)
pkg/gd/wrapper_coverage_test.go:33
↓ 8 callersFunctionnewPalette
(t *testing.T, w, h int)
pkg/gd/io_extra_test.go:21
↓ 7 callersFunctionBuiltinFont
(size FontSize)
pkg/gd/text.go:81
↓ 7 callersMethodTrueColor
TrueColor reports whether the image is truecolor rather than palette-based. Returns false for a closed image.
pkg/gd/gd.go:172
↓ 6 callersMethodColorsTotal
ColorsTotal returns the number of palette colors, or 0 for a closed image.
pkg/gd/gd.go:181
↓ 6 callersMethodConcat
Concat returns the composition a ∘ other.
pkg/gd/transform.go:238
↓ 6 callersMethodLine
(x1, y1, x2, y2 int, color Color)
pkg/gd/draw.go:94
↓ 6 callersFunctionNewPalette
NewPalette creates a palette image with up to 256 colors.
pkg/gd/gd.go:97
↓ 6 callersMethodSetPixel
(x, y int, color Color)
pkg/gd/draw.go:52
↓ 6 callersMethodcptr
()
pkg/gd/text.go:98
↓ 6 callersFunctiondefaultJPEGOptions
(opts *JPEGOptions)
pkg/gd/io.go:69
↓ 5 callersMethodExtract
Extract returns the bytes accumulated by a dynamic write context and consumes the context. The returned context is closed; Extract may not be called o
pkg/gd/ioctx.go:120
↓ 5 callersMethodFilledRectangle
(x1, y1, x2, y2 int, color Color)
pkg/gd/draw.go:121
↓ 5 callersMethodHas
Has reports whether all bits in flag are present. Has(0) is always false so that callers can safely test individual constants without special-casing t
pkg/gd/compare.go:25
↓ 5 callersFunctionNewDynamicWriteContext
NewDynamicWriteContext creates a gdIOCtx backed by libgd-managed memory that grows as encoders write to it. Use Extract to retrieve the bytes.
pkg/gd/ioctx.go:48
↓ 5 callersMethodString
String draws Latin-1 text with a built-in bitmap font.
pkg/gd/text.go:132
↓ 5 callersFunctiondefaultHEIFOptions
defaultHEIFOptions fills in the structural defaults (libgd codec/chroma enums must be non-zero). Quality is left untouched: callers that pass HEIFOpti
pkg/gd/io.go:94
↓ 5 callersFunctionpixelRGBA
(t *testing.T, im *Image, x, y int)
pkg/gd/wrapper_coverage_test.go:11
↓ 4 callersMethodClose
Close releases the libgd resources backing the context. For file-backed contexts the underlying FILE is also closed and any pending I/O error is repo
pkg/gd/ioctx.go:92
↓ 4 callersMethodEncodePNGFile
(path string, opts *PNGOptions)
pkg/gd/io.go:278
↓ 4 callersFunctiondefaultPNGOptions
(opts *PNGOptions)
pkg/gd/io.go:76
↓ 4 callersFunctionpalettePixelRGBA
(t *testing.T, im *Image, x, y int)
pkg/gd/wrapper_coverage_test.go:20
↓ 3 callersFunctionNewDynamicReadContext
NewDynamicReadContext creates a gdIOCtx that reads from a copy of data.
pkg/gd/ioctx.go:33
↓ 3 callersMethodSetClip
(rect Rect)
pkg/gd/draw.go:241
↓ 3 callersMethodTransparentColor
TransparentColor returns the transparent palette index or -1 (also for a closed image).
pkg/gd/gd.go:191
↓ 3 callersFunctionTrueColorAlpha
TrueColorAlpha composes a truecolor value using libgd channel semantics.
pkg/gd/color.go:29
↓ 3 callersFunctioncPoints
(points []Point)
pkg/gd/draw.go:184
↓ 3 callersFunctiondefaultAVIFOptions
(opts *AVIFOptions)
pkg/gd/io.go:108
↓ 3 callersFunctiondefaultBMPOptions
(opts *BMPOptions)
pkg/gd/io.go:115
↓ 3 callersFunctiondefaultWebPOptions
(opts *WebPOptions)
pkg/gd/io.go:83
↓ 3 callersFunctionopenFile
openFile opens path through C fopen and returns the FILE pointer along with a closer that flushes the stream and reports any deferred I/O error. The c
pkg/gd/io.go:132
↓ 3 callersFunctionwithIOContextFinalizer
(ctx *IOContext)
pkg/gd/ioctx.go:76
↓ 2 callersFunctionAffineScale
AffineScale returns an affine transform that scales by (scaleX, scaleY).
pkg/gd/transform.go:170
↓ 2 callersMethodBoundsSafe
(x, y int)
pkg/gd/draw.go:77
↓ 2 callersMethodClearTile
ClearTile detaches any tile previously registered via SetTile.
pkg/gd/draw.go:354
↓ 2 callersMethodColorRGBA
(color Color)
pkg/gd/color.go:133
↓ 2 callersMethodCrop
Crop returns a copy of the image cropped to rect.
pkg/gd/crop.go:29
↓ 2 callersFunctionDecodeJPEGFile
(path string, opts *JPEGOptions)
pkg/gd/io.go:301
↓ 2 callersFunctionDecodePNG
(data []byte)
pkg/gd/io.go:253
↓ 2 callersFunctionDecomposeTrueColor
DecomposeTrueColor decomposes a truecolor value.
pkg/gd/color.go:34
↓ 2 callersMethodEncodeXBMContext
(ctx *IOContext, name string, foreground Color)
pkg/gd/ioctx.go:374
↓ 2 callersMethodEqual
(other Affine)
pkg/gd/transform.go:255
↓ 2 callersMethodExpansion
()
pkg/gd/transform.go:245
↓ 2 callersMethodFilledEllipse
(cx, cy, width, height int, color Color)
pkg/gd/draw.go:157
↓ 2 callersMethodInterlaced
Interlaced reports whether interlacing is enabled. Returns false for a closed image.
pkg/gd/gd.go:201
↓ 2 callersMethodReplaceColorArray
(src, dst []Color)
pkg/gd/color.go:259
↓ 2 callersMethodResolution
Resolution returns horizontal and vertical DPI, or (0, 0) for a closed image.
pkg/gd/gd.go:211
↓ 2 callersFunctionRuntimeFeatures
()
pkg/gd/features.go:72
↓ 2 callersMethodSetStyle
(style []Color)
pkg/gd/draw.go:299
↓ 2 callersMethodSetTile
SetTile registers tile as the source image for libgd's tile-fill operations. libgd does not copy tile internally, so the caller must keep it alive fo
pkg/gd/draw.go:339
↓ 2 callersMethodShearHorizontal
ShearHorizontal composes the receiver with a horizontal shear by angle (degrees). Returns ErrInvalidArgument if libgd rejects the shear angle (e.g. ±9
pkg/gd/transform.go:208
↓ 2 callersMethodShearVertical
ShearVertical composes the receiver with a vertical shear by angle (degrees). Returns ErrInvalidArgument if libgd rejects the shear angle (e.g. ±90°).
pkg/gd/transform.go:218
↓ 2 callersMethodString16
String16 draws horizontal Unicode (UCS-2) text with a built-in bitmap font. An empty s is a no-op rather than an error, matching the behaviour of Stri
pkg/gd/text.go:184
↓ 2 callersMethodStringUp16
StringUp16 draws vertical Unicode (UCS-2) text with a built-in bitmap font.
pkg/gd/text.go:202
↓ 2 callersMethodTransformBoundingBox
TransformBoundingBox returns the bounding rect that contains src after applying the affine transform.
pkg/gd/transform.go:297
↓ 2 callersFunctionVersion
()
pkg/gd/features.go:37
↓ 2 callersFunctionaffineShearHorizontal
(angle float64)
pkg/gd/transform.go:320
↓ 2 callersFunctionaffineShearVertical
(angle float64)
pkg/gd/transform.go:328
↓ 2 callersFunctioncloseFile
(path string, file *C.FILE)
pkg/gd/io.go:140
↓ 2 callersFunctiondefaultGD2Options
(opts *GD2Options)
pkg/gd/io.go:122
↓ 2 callersFunctionexistingHeaders
(candidates []string)
pkg/gd/api_coverage_test.go:66
↓ 2 callersFunctionfopen
(path, mode string)
pkg/gd/io.go:156
↓ 2 callersFunctionlatin1CString
(s string)
pkg/gd/text.go:169
↓ 2 callersFunctionwithAppendFile
withAppendFile is the equivalent of withWriteFile but uses append mode.
pkg/gd/io.go:205
↓ 2 callersFunctionwithImageFinalizer
(im *Image)
pkg/gd/gd.go:84
↓ 1 callersMethodAABlend
()
pkg/gd/draw.go:85
↓ 1 callersMethodAdjustColor
(r, g, b, a int)
pkg/gd/filter.go:162
↓ 1 callersFunctionAffineIdentity
AffineIdentity returns the identity affine transform.
pkg/gd/transform.go:163
↓ 1 callersFunctionAffineRotate
AffineRotate returns an affine transform that rotates by angle (degrees).
pkg/gd/transform.go:177
↓ 1 callersFunctionAffineTranslate
AffineTranslate returns an affine transform that translates by (offsetX, offsetY).
pkg/gd/transform.go:184
↓ 1 callersMethodAllocateColorAlpha
(r, g, b, a int)
pkg/gd/color.go:56
↓ 1 callersFunctionAlphaBlend
(dest, src Color)
pkg/gd/misc.go:33
↓ 1 callersMethodAlphaBlending
(blend bool)
pkg/gd/draw.go:272
↓ 1 callersMethodAlphaBlendingEffect
(effect AlphaEffect)
pkg/gd/misc.go:53
↓ 1 callersMethodApplyToPoint
ApplyToPoint applies the affine transform to src.
pkg/gd/transform.go:191
↓ 1 callersMethodArc
(cx, cy, width, height, start, end int, color Color)
pkg/gd/draw.go:130
↓ 1 callersMethodBounds
Bounds returns a rectangle covering the full image. Returns the zero Rect when the image is closed.
pkg/gd/gd.go:166
↓ 1 callersMethodBrightness
(value int)
pkg/gd/filter.go:140
next →1–100 of 325, ranked by callers