Struct CopyOptions

Source
pub struct CopyOptions {
    pub width: i32,
    pub height: i32,
    pub bands: i32,
    pub format: BandFormat,
    pub coding: Coding,
    pub interpretation: Interpretation,
    pub xres: f64,
    pub yres: f64,
    pub xoffset: i32,
    pub yoffset: i32,
}
Expand description

Options for copy operation

Fields§

§width: i32

width: i32 -> Image width in pixels min: 0, max: 10000000, default: 0

§height: i32

height: i32 -> Image height in pixels min: 0, max: 10000000, default: 0

§bands: i32

bands: i32 -> Number of bands in image min: 0, max: 10000000, default: 0

§format: BandFormat

format: BandFormat -> Pixel format in image Notset -> VIPS_FORMAT_NOTSET = -1 Uchar -> VIPS_FORMAT_UCHAR = 0 [DEFAULT] Char -> VIPS_FORMAT_CHAR = 1 Ushort -> VIPS_FORMAT_USHORT = 2 Short -> VIPS_FORMAT_SHORT = 3 Uint -> VIPS_FORMAT_UINT = 4 Int -> VIPS_FORMAT_INT = 5 Float -> VIPS_FORMAT_FLOAT = 6 Complex -> VIPS_FORMAT_COMPLEX = 7 Double -> VIPS_FORMAT_DOUBLE = 8 Dpcomplex -> VIPS_FORMAT_DPCOMPLEX = 9 Last -> VIPS_FORMAT_LAST = 10

§coding: Coding

coding: Coding -> Pixel coding Error -> VIPS_CODING_ERROR = -1 None -> VIPS_CODING_NONE = 0 [DEFAULT] Labq -> VIPS_CODING_LABQ = 2 Rad -> VIPS_CODING_RAD = 6 Last -> VIPS_CODING_LAST = 7

§interpretation: Interpretation

interpretation: Interpretation -> Pixel interpretation Error -> VIPS_INTERPRETATION_ERROR = -1 Multiband -> VIPS_INTERPRETATION_MULTIBAND = 0 [DEFAULT] BW -> VIPS_INTERPRETATION_B_W = 1 Histogram -> VIPS_INTERPRETATION_HISTOGRAM = 10 Xyz -> VIPS_INTERPRETATION_XYZ = 12 Lab -> VIPS_INTERPRETATION_LAB = 13 Cmyk -> VIPS_INTERPRETATION_CMYK = 15 Labq -> VIPS_INTERPRETATION_LABQ = 16 Rgb -> VIPS_INTERPRETATION_RGB = 17 Cmc -> VIPS_INTERPRETATION_CMC = 18 Lch -> VIPS_INTERPRETATION_LCH = 19 Lab -> VIPS_INTERPRETATION_LABS = 21 Srgb -> VIPS_INTERPRETATION_sRGB = 22 Yxy -> VIPS_INTERPRETATION_YXY = 23 Fourier -> VIPS_INTERPRETATION_FOURIER = 24 Rgb16 -> VIPS_INTERPRETATION_RGB16 = 25 Grey16 -> VIPS_INTERPRETATION_GREY16 = 26 Matrix -> VIPS_INTERPRETATION_MATRIX = 27 Scrgb -> VIPS_INTERPRETATION_scRGB = 28 Hsv -> VIPS_INTERPRETATION_HSV = 29 Last -> VIPS_INTERPRETATION_LAST = 30

§xres: f64

xres: f64 -> Horizontal resolution in pixels/mm min: -0, max: 1000000, default: 0

§yres: f64

yres: f64 -> Vertical resolution in pixels/mm min: -0, max: 1000000, default: 0

§xoffset: i32

xoffset: i32 -> Horizontal offset of origin min: -10000000, max: 10000000, default: 0

§yoffset: i32

yoffset: i32 -> Vertical offset of origin min: -10000000, max: 10000000, default: 0

Trait Implementations§

Source§

impl Clone for CopyOptions

Source§

fn clone(&self) -> CopyOptions

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CopyOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CopyOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.