Documentation
¶
Overview ¶
Package image provides a output.Surface that renders a single frame into an in-memory image.Image.
The Render convenience function builds a output.Source and returns the image in one call. For lower-level control, blank-import this package and use output.NewSurface("image", ...) + output.Render.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(ctx context.Context, src output.Source, width, height int, opts ...output.SurfaceOpt) (stdimage.Image, error)
Render builds src and renders to an in-memory stdimage.Image (always CPU rasterized for deterministic, headless-safe output). If height ≤ 0 and the built figure implements output.Sizer, it is inferred from width.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.