pub enum Node {
FlipV,
FlipH,
Crop {
x1: u32,
y1: u32,
x2: u32,
y2: u32,
},
CropWhitespace {
threshold: u32,
percent_padding: f32,
},
CreateCanvas {
format: PixelFormat,
w: usize,
h: usize,
color: Color,
},
CommandString {
kind: CommandStringKind,
value: String,
decode: Option<i32>,
encode: Option<i32>,
},
Constrain(Constraint),
CopyRectToCanvas {
from_x: u32,
from_y: u32,
width: u32,
height: u32,
x: u32,
y: u32,
},
Decode {
io_id: i32,
commands: Option<Vec<DecoderCommand>>,
},
Encode {
io_id: i32,
preset: EncoderPreset,
},
FillRect {
x1: u32,
y1: u32,
x2: u32,
y2: u32,
color: Color,
},
ExpandCanvas {
left: u32,
top: u32,
right: u32,
bottom: u32,
color: Color,
},
Transpose,
Rotate90,
Rotate180,
Rotate270,
ApplyOrientation {
flag: i32,
},
Resample2D {
w: usize,
h: usize,
down_filter: Option<Filter>,
up_filter: Option<Filter>,
hints: Option<ResampleHints>,
},
Resample1D {
scale_to_width: usize,
transpose_on_write: bool,
interpolation_filter: Option<Filter>,
},
FlowBitmapBgraPtr {
ptr_to_flow_bitmap_bgra_ptr: usize,
},
}
Variants
FlipV
FlipH
Crop
Fields of Crop
CropWhitespace
Fields of CropWhitespace
threshold: u32 | |
percent_padding: f32 | |
CreateCanvas
Fields of CreateCanvas
CommandString
Fields of CommandString
Constrain(Constraint)
CopyRectToCanvas
Fields of CopyRectToCanvas
Decode
Fields of Decode
Encode
Fields of Encode
FillRect
Fields of FillRect
ExpandCanvas
Fields of ExpandCanvas
Transpose
Rotate90
Rotate180
Rotate270
ApplyOrientation
Fields of ApplyOrientation
Resample2D
Fields of Resample2D
Resample1D
Fields of Resample1D
FlowBitmapBgraPtr
Fields of FlowBitmapBgraPtr
ptr_to_flow_bitmap_bgra_ptr: usize | |
Trait Implementations
fn eq(&self, __arg_0: &Node) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Node) -> bool
This method tests for !=
.
Formats the value using the given formatter.