pub struct VipsImage { /* private fields */ }
Implementations§
Source§impl VipsImage
This is the main type of vips. It represents an image and most operations will take one as input and output a new one.
In the moment this type is not thread safe. Be careful working within thread environments.
impl VipsImage
This is the main type of vips. It represents an image and most operations will take one as input and output a new one. In the moment this type is not thread safe. Be careful working within thread environments.
pub fn new() -> VipsImage
pub fn new_memory() -> Result<VipsImage>
pub fn new_from_file(filename: &str) -> Result<VipsImage>
pub fn new_from_file_rw(filename: &str) -> Result<VipsImage>
pub fn new_from_file_raw( filename: &str, x_size: i32, y_size: i32, bands: i32, offset: u64, ) -> Result<VipsImage>
pub fn new_from_file_access( filename: &str, access: Access, memory: bool, ) -> Result<VipsImage>
pub fn new_from_buffer(buffer: &[u8], option_str: &str) -> Result<VipsImage>
pub fn new_from_memory( buffer: &[u8], width: i32, height: i32, bands: i32, format: BandFormat, ) -> Result<VipsImage>
pub fn image_new_matrix(width: i32, height: i32) -> Result<VipsImage>
pub fn image_new_matrix_from_array( width: i32, height: i32, array: &[f64], ) -> Result<VipsImage>
pub fn new_from_image(image: &VipsImage, array: &[f64]) -> Result<VipsImage>
pub fn new_from_image1(image: &VipsImage, c: f64) -> Result<VipsImage>
pub fn image_new_temp_file(format: &str) -> Result<VipsImage>
pub fn image_copy_memory(image: VipsImage) -> Result<VipsImage>
pub fn image_wio_input(&mut self) -> Result<()>
pub fn get_filename(&self) -> Result<&str, Utf8Error>
pub fn get_width(&self) -> i32
pub fn get_height(&self) -> i32
pub fn get_xoffset(&self) -> i32
pub fn get_yoffset(&self) -> i32
pub fn get_scale(&self) -> f64
pub fn get_offset(&self) -> f64
pub fn get_xres(&self) -> f64
pub fn get_yres(&self) -> f64
pub fn get_bands(&self) -> i32
pub fn get_page_height(&self) -> i32
pub fn get_n_pages(&self) -> i32
pub fn get_coding(&self) -> Result<Coding>
pub fn get_format(&self) -> Result<BandFormat>
pub fn guess_format(&self) -> Result<BandFormat>
pub fn get_interpretation(&self) -> Result<Interpretation>
pub fn guess_interpretation(&self) -> Result<Interpretation>
pub fn image_set_delete_on_close(&mut self, flag: bool)
pub fn image_invalidate_all(&self)
pub fn image_minimise_all(&self)
pub fn image_iskilled(&self) -> bool
pub fn image_isMSBfirst(&self) -> bool
pub fn image_isfile(&self) -> bool
pub fn image_ispartial(&self) -> bool
pub fn image_hasalpha(&self) -> bool
pub fn image_set_kill(&self, flag: bool)
pub fn image_set_progress(&self, flag: bool)
pub fn image_write(&self) -> Result<VipsImage>
pub fn image_pio_input(&mut self) -> Result<()>
pub fn image_pio_output(&mut self) -> Result<()>
pub fn image_inplace(&self) -> Result<()>
pub fn image_write_to_file(&self, filename: &str) -> Result<()>
pub fn image_write_prepare(&self) -> Result<()>
pub fn image_write_to_buffer(&self, suffix: &str) -> Result<Vec<u8>>
pub fn image_write_to_memory(&self) -> Vec<u8> ⓘ
pub fn image_decode_predict(&self) -> Result<(i32, BandFormat)>
pub fn image_decode(&self) -> Result<VipsImage>
pub fn image_encode(&self, coding: Coding) -> Result<VipsImage>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VipsImage
impl RefUnwindSafe for VipsImage
impl !Send for VipsImage
impl !Sync for VipsImage
impl Unpin for VipsImage
impl UnwindSafe for VipsImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more