[−][src]Function libvips::ops::draw_rect
pub fn draw_rect(
image: &VipsImage,
ink: &mut [f64],
left: i32,
top: i32,
width: i32,
height: i32
) -> Result<()>
VipsDrawRect (draw_rect), paint a rectangle on an image
image: &VipsImage
-> Image to draw on
ink: &mut [f64]
-> Color for pixels
left: i32
-> Rect to fill
min: -1000000000, max: 1000000000, default: 0
top: i32
-> Rect to fill
min: -1000000000, max: 1000000000, default: 0
width: i32
-> Rect to fill
min: -1000000000, max: 1000000000, default: 0
height: i32
-> Rect to fill
min: -1000000000, max: 1000000000, default: 0