draw2d

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package draw2d 提供基于 github.com/llgcode/draw2d 的页面栅格化后端,通过 空白导入注册到 internal/render 的注册表:

import _ "github.com/zc310/ofd/internal/render/backends/draw2d"

之后即可用 drawing.BackendDraw2D(或 converter.RasterBackend("draw2d")) 作为栅格后端名。只用于渲染速度对照实验,不承诺与 canvas/gogpu 的逐像素 输出一致。渲染上下文状态机由 internal/render/backends/rastercore 共享, 本包只依赖 draw2d、geom 与 rastercore,不依赖 tdewolff/canvas。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(width, height float64, resolution geom.Resolution) (drawing.Backend, error)

New 创建 draw2d 光栅后端。输出分辨率与像素尺寸规则和其它后端一致。

Types

This section is empty.

Jump to

Keyboard shortcuts

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