pub struct ImagePart { /* private fields */ }Expand description
Image part (ppt/media/imageN.ext)
Implementations§
Source§impl ImagePart
impl ImagePart
Sourcepub fn from_file(
image_number: usize,
file_path: &str,
) -> Result<Self, PptxError>
pub fn from_file( image_number: usize, file_path: &str, ) -> Result<Self, PptxError>
Create from file path
Sourcepub fn image_number(&self) -> usize
pub fn image_number(&self) -> usize
Get image number
Sourcepub fn set_dimensions(&mut self, width: u32, height: u32)
pub fn set_dimensions(&mut self, width: u32, height: u32)
Set dimensions
Sourcepub fn rel_target(&self) -> String
pub fn rel_target(&self) -> String
Get relative path for relationships
Trait Implementations§
Source§impl Part for ImagePart
impl Part for ImagePart
Source§fn content_type(&self) -> ContentType
fn content_type(&self) -> ContentType
Get the content type
Auto Trait Implementations§
impl Freeze for ImagePart
impl RefUnwindSafe for ImagePart
impl Send for ImagePart
impl Sync for ImagePart
impl Unpin for ImagePart
impl UnsafeUnpin for ImagePart
impl UnwindSafe for ImagePart
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