package
0.0.0-20240627062922-0ed1ff131195
Repository: https://github.com/llgcode/draw2d.git
Documentation: pkg.go.dev

# README

draw2d/draw2dimg

Coverage GoDoc

draw2d implementation that generates raster images using https://github.com/golang/freetype package.

# Functions

DrawContour draws the given closed contour at the given sub-pixel offset.
DrawImage draws an image into dest using an affine transformation matrix, an op and a filter.
Extents returns the FontExtents for a font.
LoadFromPngFile Open a png file.
NewGraphicContext creates a new Graphic context from an image.
NewGraphicContextWithPainter creates a new Graphic context from an image and a Painter (see Freetype-go).
SaveToPngFile create and save an image to a file using PNG format.

# Constants

BicubicFilter defines a bicubic filter.
BilinearFilter defines a bilinear filter.
LinearFilter defines a linear filter.

# Structs

FontExtents contains font metric information.
GraphicContext is the implementation of draw2d.GraphicContext for a raster image.

# Interfaces

Painter implements the freetype raster.Painter and has a SetColor method like the RGBAPainter.

# Type aliases

ImageFilter defines the type of filter to use.