pub struct Crop {
pub id: NodeId,
pub x: NodeProperty,
pub y: NodeProperty,
pub width: NodeProperty,
pub height: NodeProperty,
pub source: PortRef,
}Expand description
Extracts a fixed raster region into static output bounds.
Fields§
§id: NodeId§x: NodePropertyLeft edge of the crop region in pixels.
y: NodePropertyTop edge of the crop region in pixels.
width: NodePropertyWidth of the crop region in pixels.
height: NodePropertyHeight of the crop region in pixels.
source: PortRefTrait Implementations§
Source§impl GpuCompileNode for Crop
impl GpuCompileNode for Crop
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Crop
impl GpuFrameBindNode for Crop
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Crop
impl Node for Crop
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Crop
impl PropertyEval for Crop
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Crop
impl RefUnwindSafe for Crop
impl Send for Crop
impl Sync for Crop
impl Unpin for Crop
impl UnsafeUnpin for Crop
impl UnwindSafe for Crop
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