pub struct Transform {
pub id: NodeId,
pub scale_x: NodeProperty,
pub scale_y: NodeProperty,
pub translate_x: NodeProperty,
pub translate_y: NodeProperty,
pub rotate: NodeProperty,
pub pivot_x: NodeProperty,
pub pivot_y: NodeProperty,
pub sampling: NodeProperty,
pub source: PortRef,
}Expand description
Transforms a raster inside its existing static bounds.
Fields§
§id: NodeId§scale_x: NodePropertyHorizontal scale multiplier.
scale_y: NodePropertyVertical scale multiplier.
translate_x: NodePropertyHorizontal translation in pixels.
translate_y: NodePropertyVertical translation in pixels.
rotate: NodePropertyRotation in degrees.
pivot_x: NodePropertyHorizontal pivot point in pixels.
pivot_y: NodePropertyVertical pivot point in pixels.
sampling: NodePropertySampling filter used when transforming.
source: PortRefTrait Implementations§
Source§impl GpuCompileNode for Transform
impl GpuCompileNode for Transform
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Transform
impl GpuFrameBindNode for Transform
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Transform
impl Node for Transform
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Transform
impl PropertyEval for Transform
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transform
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