Enum imageflow_types::Node
[−]
[src]
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
FlipVFlipHCropFields of Crop
x1: u32 | |
y1: u32 | |
x2: u32 | |
y2: u32 |
CropWhitespaceFields of CropWhitespace
threshold: u32 | |
percent_padding: f32 |
CreateCanvasFields of CreateCanvas
format: PixelFormat | |
w: usize | |
h: usize | |
color: Color |
CommandStringFields of CommandString
kind: CommandStringKind | |
value: String | |
decode: Option<i32> | |
encode: Option<i32> |
Constrain(Constraint)CopyRectToCanvasFields of CopyRectToCanvas
from_x: u32 | |
from_y: u32 | |
width: u32 | |
height: u32 | |
x: u32 | |
y: u32 |
DecodeFields of Decode
io_id: i32 | |
commands: Option<Vec<DecoderCommand>> |
EncodeFields of Encode
io_id: i32 | |
preset: EncoderPreset |
FillRectFields of FillRect
x1: u32 | |
y1: u32 | |
x2: u32 | |
y2: u32 | |
color: Color |
ExpandCanvasFields of ExpandCanvas
left: u32 | |
top: u32 | |
right: u32 | |
bottom: u32 | |
color: Color |
TransposeRotate90Rotate180Rotate270ApplyOrientationFields of ApplyOrientation
flag: i32 |
Resample2DFields of Resample2D
w: usize | |
h: usize | |
down_filter: Option<Filter> | |
up_filter: Option<Filter> | |
hints: Option<ResampleHints> |
Resample1DFields of Resample1D
scale_to_width: usize | |
transpose_on_write: bool | |
interpolation_filter: Option<Filter> |
FlowBitmapBgraPtrFields of FlowBitmapBgraPtr
ptr_to_flow_bitmap_bgra_ptr: usize |
Trait Implementations
impl Clone for Node[src]
fn clone(&self) -> Node
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for Node[src]
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 !=.