image

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL