pub struct Resize {
pub id: NodeId,
pub width: NodeProperty,
pub height: NodeProperty,
pub mode: NodeProperty,
pub sampling: NodeProperty,
pub source: PortRef,
}Expand description
Resamples a raster into static output bounds.
Fields§
§id: NodeId§width: NodePropertyOutput width in pixels.
height: NodePropertyOutput height in pixels.
mode: NodePropertyHow the source raster should fit the output bounds.
sampling: NodePropertySampling filter used when resizing.
source: PortRefTrait Implementations§
Source§impl GpuCompileNode for Resize
impl GpuCompileNode for Resize
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Resize
impl GpuFrameBindNode for Resize
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Resize
impl Node for Resize
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Resize
impl PropertyEval for Resize
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Resize
impl RefUnwindSafe for Resize
impl Send for Resize
impl Sync for Resize
impl Unpin for Resize
impl UnsafeUnpin for Resize
impl UnwindSafe for Resize
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