Image

Struct Image 

Source
pub struct Image<'a> { /* private fields */ }

Implementations§

Source§

impl Image<'_>

Source

pub fn pixel_transform(&self) -> Result<&str>

Returns the pixel transform used for this Image

Source

pub fn quality_preset(&self) -> Result<&str>

Returns the quality preset used for this Image

Source

pub fn quality(&self) -> Result<usize>

Returns the quality used for this Image

Source

pub fn compressor(&self) -> Result<&str>

Returns the compressor used for this Image

Source

pub fn colorspace_transform(&self) -> Result<&str>

Returns the colorspace transform used for this Image

Source

pub fn num_tiles(&self) -> Result<usize>

Returns the number of tiles in this Image Only applicable to the WSI SubImage, Returns an error for the Macro and Label/ILE SubImage

Source

pub fn icc_profile(&self) -> Result<&str>

Returns the ICC Profile of this Image

Source

pub fn icc_matrix(&self) -> Result<[f64; 9]>

ICC (International Color Consortium) matrix (3x3) re-

Source

pub fn image_data(&self) -> Result<&[u8]>

Returns image data encoder as JPEG Only applicable to Macro and Label/ILE SubImage

Source

pub fn get_image(&self) -> Result<DynamicImage>

Returns image data as a DynamicImage NOTE: Only applicable to Macro and Label/ILE SubImage

Source

pub fn lossy_image_compression(&self) -> Result<&str>

Indicates whether the image is compressed with or without loss.

Source

pub fn lossy_image_compression_ratio(&self) -> Result<f64>

Returns the compression ratio of the SubImage

Source

pub fn color_linearity(&self) -> Result<&str>

Source

pub fn view(&self) -> Result<View<'_>>

Create a new instance of View A View is a reference to a Philips Engine internal object You can create multiple View handler for an Image WARNING: multiple View handler created from the same Image will points to the same reference in Philips Engine internal.

Auto Trait Implementations§

§

impl<'a> Freeze for Image<'a>

§

impl<'a> RefUnwindSafe for Image<'a>

§

impl<'a> Send for Image<'a>

§

impl<'a> !Sync for Image<'a>

§

impl<'a> Unpin for Image<'a>

§

impl<'a> UnwindSafe for Image<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V