类型 ImageViewGeometry

API 文档由 Go 源码生成,内容为英文。

type ImageViewGeometry struct {
	Image ui.Rect
	Scale float32
}

构造函数

PaintImageView#

func PaintImageView(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, options ImageViewOptions) ImageViewGeometry

PaintImageView paints an immutable bitmap clipped to bounds. File decoding, byte/pixel limits and document lifetime belong to the application.