Registry / utility / x-image

x-image

JSON →
library0.42.0gogounverified

Package image provides extended image processing functions beyond the standard library, including font rendering and color management.

go get golang.org/x/image
INSTALL
IMPORT
SIG · X-IMAGE
X
x-image
utilitygov0.42.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

image
golang.org/x/image

Creates an image and draws text using the basic font from golang.org/x/image.

package main import ( "golang.org/x/image/font" "golang.org/x/image/font/basicfont" "image" "image/png" "os" ) func main() { img := image.NewRGBA(image.Rect(0, 0, 100, 50)) // Draw text using basic font _ = font.Drawer{ Dst: img, Src: image.White, Face: basicfont.Face7x13, Dot: font.Pt(10, 20), }.DrawString("Hello") f, _ := os.Create("output.png") defer f.Close() png.Encode(f, img) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.42.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
15
Amazon
1
Resources
x-image — go get x-image · libregistry