Skip to main content

Crate rpdfium_graphics

Crate rpdfium_graphics 

Source
Expand description

2D graphics foundation types for rpdfium — a faithful Rust port of PDFium.

Provides type definitions used across the rendering pipeline: path operations, color spaces, blend modes, clipping, bitmaps, and text rendering modes.

This crate contains only type definitions for Phase 1. The actual rendering implementation (tiny-skia integration) is in rpdfium-render (Phase 2).

Re-exports§

pub use cfx_color::BlendMode;
pub use cfx_color::Color;
pub use cfx_color::ColorSpaceFamily;
pub use cfx_dibitmap::Bitmap;
pub use cfx_dibitmap::BitmapFormat;
pub use cfx_path::DashPattern;
pub use cfx_path::FillRule;
pub use cfx_path::LineCapStyle;
pub use cfx_path::LineJoinStyle;
pub use cfx_path::PathOp;
pub use cfx_path::PathStyle;
pub use cfx_path::bounding_box;
pub use cfx_path::bounding_box_for_stroke_path;
pub use cfx_path::get_bounding_box;
pub use cfx_path::get_bounding_box_for_stroke_path;
pub use cfx_path::get_rect;
pub use cfx_path::is_rect;
pub use cfx_path::rect_if_axis_aligned;
pub use cfx_textrenderoptions::TextRenderingMode;
pub use clip::ClipPath;

Modules§

cfx_color
Color spaces, color values, and blend modes.
cfx_dibitmap
Bitmap image buffer for rendering output.
cfx_path
Path construction operations and styling.
cfx_textrenderoptions
Text rendering mode.
clip
Clipping path representation.

Structs§

ImageRef
Reference to an image object for deferred decoding.