Struct vips::VipsImage [−][src]
Fields
c: *mut VipsImage
Methods
impl<'a> VipsImage<'a>
[src]
impl<'a> VipsImage<'a>
pub fn new() -> Result<VipsImage<'a>, Box<Error>>
[src]
pub fn new() -> Result<VipsImage<'a>, Box<Error>>
pub fn new_memory() -> Result<VipsImage<'a>, Box<Error>>
[src]
pub fn new_memory() -> Result<VipsImage<'a>, Box<Error>>
pub fn from_file<S: Into<Vec<u8>>>(path: S) -> Result<VipsImage<'a>, Box<Error>>
[src]
pub fn from_file<S: Into<Vec<u8>>>(path: S) -> Result<VipsImage<'a>, Box<Error>>
pub fn from_memory(
buf: Vec<u8>,
width: u32,
height: u32,
bands: u8,
format: VipsBandFormat
) -> Result<VipsImage<'a>, Box<Error>>
[src]
pub fn from_memory(
buf: Vec<u8>,
width: u32,
height: u32,
bands: u8,
format: VipsBandFormat
) -> Result<VipsImage<'a>, Box<Error>>
pub fn from_memory_reference(
buf: &'a [u8],
width: u32,
height: u32,
bands: u8,
format: VipsBandFormat
) -> Result<VipsImage, Box<Error>>
[src]
pub fn from_memory_reference(
buf: &'a [u8],
width: u32,
height: u32,
bands: u8,
format: VipsBandFormat
) -> Result<VipsImage, Box<Error>>
pub fn from_buffer(buf: &'a [u8]) -> Result<VipsImage, Box<Error>>
[src]
pub fn from_buffer(buf: &'a [u8]) -> Result<VipsImage, Box<Error>>
pub fn draw_rect(
&mut self,
ink: &[f64],
left: u32,
top: u32,
width: u32,
height: u32
) -> Result<(), Box<Error>>
[src]
pub fn draw_rect(
&mut self,
ink: &[f64],
left: u32,
top: u32,
width: u32,
height: u32
) -> Result<(), Box<Error>>
pub fn draw_rect1(
&mut self,
ink: f64,
left: u32,
top: u32,
width: u32,
height: u32
) -> Result<(), Box<Error>>
[src]
pub fn draw_rect1(
&mut self,
ink: f64,
left: u32,
top: u32,
width: u32,
height: u32
) -> Result<(), Box<Error>>
pub fn draw_point(
&mut self,
ink: &[f64],
x: i32,
y: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_point(
&mut self,
ink: &[f64],
x: i32,
y: i32
) -> Result<(), Box<Error>>
pub fn draw_point1(
&mut self,
ink: f64,
x: i32,
y: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_point1(
&mut self,
ink: f64,
x: i32,
y: i32
) -> Result<(), Box<Error>>
pub fn draw_image(
&mut self,
img: &VipsImage,
x: i32,
y: i32,
mode: VipsCombineMode
) -> Result<(), Box<Error>>
[src]
pub fn draw_image(
&mut self,
img: &VipsImage,
x: i32,
y: i32,
mode: VipsCombineMode
) -> Result<(), Box<Error>>
pub fn draw_mask(
&mut self,
ink: &[f64],
mask: &VipsImage,
x: i32,
y: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_mask(
&mut self,
ink: &[f64],
mask: &VipsImage,
x: i32,
y: i32
) -> Result<(), Box<Error>>
pub fn draw_mask1(
&mut self,
ink: f64,
mask: &VipsImage,
x: i32,
y: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_mask1(
&mut self,
ink: f64,
mask: &VipsImage,
x: i32,
y: i32
) -> Result<(), Box<Error>>
pub fn draw_line(
&mut self,
ink: &[f64],
x1: i32,
y1: i32,
x2: i32,
y2: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_line(
&mut self,
ink: &[f64],
x1: i32,
y1: i32,
x2: i32,
y2: i32
) -> Result<(), Box<Error>>
pub fn draw_line1(
&mut self,
ink: f64,
x1: i32,
y1: i32,
x2: i32,
y2: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_line1(
&mut self,
ink: f64,
x1: i32,
y1: i32,
x2: i32,
y2: i32
) -> Result<(), Box<Error>>
pub fn draw_circle(
&mut self,
ink: &[f64],
cx: i32,
cy: i32,
r: i32,
fill: bool
) -> Result<(), Box<Error>>
[src]
pub fn draw_circle(
&mut self,
ink: &[f64],
cx: i32,
cy: i32,
r: i32,
fill: bool
) -> Result<(), Box<Error>>
pub fn draw_circle1(
&mut self,
ink: f64,
cx: i32,
cy: i32,
r: i32,
fill: bool
) -> Result<(), Box<Error>>
[src]
pub fn draw_circle1(
&mut self,
ink: f64,
cx: i32,
cy: i32,
r: i32,
fill: bool
) -> Result<(), Box<Error>>
pub fn draw_flood(
&mut self,
ink: &[f64],
x: i32,
y: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_flood(
&mut self,
ink: &[f64],
x: i32,
y: i32
) -> Result<(), Box<Error>>
pub fn draw_flood1(
&mut self,
ink: f64,
x: i32,
y: i32
) -> Result<(), Box<Error>>
[src]
pub fn draw_flood1(
&mut self,
ink: f64,
x: i32,
y: i32
) -> Result<(), Box<Error>>
pub fn draw_smudge(
&mut self,
left: u32,
top: u32,
width: u32,
height: u32
) -> Result<(), Box<Error>>
[src]
pub fn draw_smudge(
&mut self,
left: u32,
top: u32,
width: u32,
height: u32
) -> Result<(), Box<Error>>
pub fn merge(
&self,
another: &VipsImage,
direction: VipsDirection,
dx: i32,
dy: i32,
mblend: Option<i32>
) -> Result<VipsImage<'a>, Box<Error>>
[src]
pub fn merge(
&self,
another: &VipsImage,
direction: VipsDirection,
dx: i32,
dy: i32,
mblend: Option<i32>
) -> Result<VipsImage<'a>, Box<Error>>
pub fn mosaic(
&self,
sec: &VipsImage,
direction: VipsDirection,
xref: i32,
yref: i32,
xsec: i32,
ysec: i32,
bandno: Option<i32>,
hwindow: Option<i32>,
harea: Option<i32>,
mblend: Option<i32>
) -> Result<VipsImage, Box<Error>>
[src]
pub fn mosaic(
&self,
sec: &VipsImage,
direction: VipsDirection,
xref: i32,
yref: i32,
xsec: i32,
ysec: i32,
bandno: Option<i32>,
hwindow: Option<i32>,
harea: Option<i32>,
mblend: Option<i32>
) -> Result<VipsImage, Box<Error>>
pub fn mosaic1(
&self,
sec: &VipsImage,
direction: VipsDirection,
xr1: i32,
yr1: i32,
xs1: i32,
ys1: i32,
xr2: i32,
yr2: i32,
xs2: i32,
ys2: i32,
search: Option<bool>,
hwindow: Option<i32>,
harea: Option<i32>,
interpolate: Option<VipsInterpolate>,
mblend: Option<i32>,
bandno: Option<i32>
) -> Result<VipsImage, Box<Error>>
[src]
pub fn mosaic1(
&self,
sec: &VipsImage,
direction: VipsDirection,
xr1: i32,
yr1: i32,
xs1: i32,
ys1: i32,
xr2: i32,
yr2: i32,
xs2: i32,
ys2: i32,
search: Option<bool>,
hwindow: Option<i32>,
harea: Option<i32>,
interpolate: Option<VipsInterpolate>,
mblend: Option<i32>,
bandno: Option<i32>
) -> Result<VipsImage, Box<Error>>
pub fn match_(
&self,
sec: &VipsImage,
xr1: i32,
yr1: i32,
xs1: i32,
ys1: i32,
xr2: i32,
yr2: i32,
xs2: i32,
ys2: i32,
search: Option<bool>,
hwindow: Option<i32>,
harea: Option<i32>,
interpolate: Option<VipsInterpolate>
) -> Result<VipsImage, Box<Error>>
[src]
pub fn match_(
&self,
sec: &VipsImage,
xr1: i32,
yr1: i32,
xs1: i32,
ys1: i32,
xr2: i32,
yr2: i32,
xs2: i32,
ys2: i32,
search: Option<bool>,
hwindow: Option<i32>,
harea: Option<i32>,
interpolate: Option<VipsInterpolate>
) -> Result<VipsImage, Box<Error>>
pub fn globalbalance(
&self,
gamma: Option<f64>,
int_output: Option<bool>
) -> Result<VipsImage, Box<Error>>
[src]
pub fn globalbalance(
&self,
gamma: Option<f64>,
int_output: Option<bool>
) -> Result<VipsImage, Box<Error>>
pub fn remosaic(
&self,
old_str: &str,
new_str: &str
) -> Result<VipsImage, Box<Error>>
[src]
pub fn remosaic(
&self,
old_str: &str,
new_str: &str
) -> Result<VipsImage, Box<Error>>
pub fn thumbnail(
&self,
width: u32,
height: u32,
size: VipsSize
) -> Result<VipsImage<'a>, Box<Error>>
[src]
pub fn thumbnail(
&self,
width: u32,
height: u32,
size: VipsSize
) -> Result<VipsImage<'a>, Box<Error>>
pub fn write_to_file<S: Into<Vec<u8>>>(&self, path: S) -> Result<(), Box<Error>>
[src]
pub fn write_to_file<S: Into<Vec<u8>>>(&self, path: S) -> Result<(), Box<Error>>