#[non_exhaustive]pub struct ImageExportOptions {
pub size: [u32; 2],
pub include_title: bool,
pub include_timestamp: bool,
pub include_watermark: bool,
pub transparent_background: bool,
pub include_crosshair: bool,
pub textures: HashMap<TextureId, Arc<ColorImage>>,
}Expand description
Image options shared by the export dialog and offscreen rendering.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.size: [u32; 2]Output width and height in pixels.
include_title: boolInclude the symbol above the chart.
include_timestamp: boolInclude the export time in the chart’s time zone above the chart.
include_watermark: boolDraw the symbol watermark and the one set with Chart::set_watermark, as they show on
screen, independently of the title and timestamp.
transparent_background: boolOmit the chart and header backgrounds, retaining plot and drawing colours.
include_crosshair: boolDraw the crosshair where the pointer last placed it over the plots, or where
Chart::set_crosshair_position or a synchronized chart placed it since.
textures: HashMap<TextureId, Arc<ColorImage>>Pixels of the textures the host binds itself, by the id its images use, so
Chart::export_png and Chart::export_svg can draw them with png-export.
Without an entry, an image of such a texture fails the export. Supplied textures use
linear filtering and clamp to their edges. Prefer [egui::TextureId::User]: ids that
collide with the offscreen frame’s own textures return an error. ChartImage frames
include the supplied pixels too.
Trait Implementations§
Source§impl Clone for ImageExportOptions
impl Clone for ImageExportOptions
Source§fn clone(&self) -> ImageExportOptions
fn clone(&self) -> ImageExportOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ImageExportOptions
impl Debug for ImageExportOptions
Auto Trait Implementations§
impl Freeze for ImageExportOptions
impl RefUnwindSafe for ImageExportOptions
impl Send for ImageExportOptions
impl Sync for ImageExportOptions
impl Unpin for ImageExportOptions
impl UnsafeUnpin for ImageExportOptions
impl UnwindSafe for ImageExportOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more