Expand description
A piet
frontend for the tiny-skia
framework.
tiny-skia
is a very high-quality implementation of software rendering, based on the
algorithms used by Skia. It is the fastest software renderer in the Rust community and it
produces high-quality results. However, the feature set of the crate is intentionally limited
so that what is there is fast and correct.
This crate, piet-tiny-skia
, provides a piet
-based frontend for tiny-skia
that may be
more familiar to users of popular graphics APIs. It may be easier to use than the tiny-skia
API while also maintaining the flexibility. It also provides text rendering, provided by the
cosmic-text
crate.
To start, create a tiny_skia::PixmapMut
and a Cache
. Then, use the Cache
to create a
RenderContext
to render into the pixmap. Finally the pixmap can be saved to a file or
rendered elsewhere.
Re-exports§
Structs§
- Brush
- The brush for
tiny-skia
. - Cache
- The cache for [
tiny-skia
] resources. - Image
- The image used [
tiny-skia
]. - Render
Context - The whole point.
- Text
- The text renderer for
tiny-skia
. - Text
Layout - The text layout for
tiny-skia
. - Text
Layout Builder - The text layout builder for
tiny-skia
.
Traits§
- AsPixmap
Mut - Trait to get a
PixmapMut
from some type.