pub struct RenderOptions {
pub size: RenderSize,
pub clear_color: Color,
pub sample_count: usize,
}Expand description
Render options: size, clear color, MSAA sample count. Parameters controlling a single SVG render call.
§Defaults
| Field | Default |
|---|---|
clear_color | TRANSPARENT |
sample_count | 4 (MSAA) |
Fields§
§size: RenderSizeOutput image dimensions.
clear_color: ColorBackground color before rendering the SVG onto the canvas.
sample_count: usizeMSAA sample count (GPU only; ignored by CPU backend).
Implementations§
Source§impl RenderOptions
impl RenderOptions
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more