tinyskia

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: 7 Imported by: 0

Documentation

Overview

Package tinyskia 提供基于 tiny-skia 纯 Go 移植(Canvas 2D API)的页面 栅格化后端,通过空白导入注册到 internal/render 的注册表:

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

之后即可用 drawing.BackendTinySkia="tinyskia" 作为栅格后端名,或经 converter.RasterBackend("tinyskia") 的后端名。只用于渲染速度对照实验,不承诺与 canvas/gogpu 的逐像素输出 一致。渲染上下文状态机由 internal/render/backends/rastercore 共享,本包 只依赖 geom 类型,不依赖 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 创建 tinyskia 光栅后端。输出分辨率与像素尺寸规则和其它后端一致。

Types

This section is empty.

Jump to

Keyboard shortcuts

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