pub struct ImageAlignNode { /* private fields */ }Implementations§
Source§impl ImageAlignNode
impl ImageAlignNode
pub fn inputConfig(&self) -> Result<Input>
pub fn input(&self) -> Result<Input>
pub fn inputAlignTo(&self) -> Result<Input>
pub fn outputAligned(&self) -> Result<Output>
pub fn passthroughInput(&self) -> Result<Output>
Source§impl ImageAlignNode
impl ImageAlignNode
Sourcepub fn set_run_on_host(&self, run_on_host: bool)
pub fn set_run_on_host(&self, run_on_host: bool)
Specify whether to run on host or device.
Mirrors C++: ImageAlign::setRunOnHost(bool).
Sourcepub fn set_output_size(&self, width: i32, height: i32)
pub fn set_output_size(&self, width: i32, height: i32)
Specify the output size of the aligned image.
Mirrors C++: ImageAlign::setOutputSize(width, height).
Sourcepub fn set_out_keep_aspect_ratio(&self, keep: bool)
pub fn set_out_keep_aspect_ratio(&self, keep: bool)
Specify whether to keep aspect ratio when resizing.
Mirrors C++: ImageAlign::setOutKeepAspectRatio(bool).
Trait Implementations§
Source§impl DeviceNode for ImageAlignNode
impl DeviceNode for ImageAlignNode
Auto Trait Implementations§
impl Freeze for ImageAlignNode
impl RefUnwindSafe for ImageAlignNode
impl Send for ImageAlignNode
impl Sync for ImageAlignNode
impl Unpin for ImageAlignNode
impl UnwindSafe for ImageAlignNode
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