[−][src]Function libvips::ops::cast_with_opts
pub fn cast_with_opts(
inp: &VipsImage,
format: BandFormat,
cast_options: &CastOptions
) -> Result<VipsImage>
VipsCast (cast), cast an image
inp: &VipsImage
-> Input image
format: BandFormat
-> Format to cast to
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
cast_options: &CastOptions
-> optional arguments
returns VipsImage
- Output image