blitz

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package blitz 通过本仓的 HTML/RGBA 桥接提供 CPU 渲染引擎。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() func() (htmlrender.Engine, error)

New 返回登记到 htmlrender.EngineConfig 的构造函数;每次调用创建独立原生 Context, 由 Renderer 在使用结束后关闭。

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine 持有一个由当前引擎实例独占使用的原生 Context。

func (*Engine) Close

func (e *Engine) Close() error

Close 释放当前引擎实例持有的原生 Context。

func (*Engine) Render

func (e *Engine) Render(ctx context.Context, page htmlrender.Page) (image.Image, error)

Render 读取页面资源并渲染图像;进入原生调用后在返回时报告取消。

Jump to

Keyboard shortcuts

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