[−][src]Trait fltk::prelude::ImageExt
Defines the methods implemented by all image types
Required methods
fn draw(&mut self, x: i32, y: i32, width: i32, height: i32)
Draws the image at the presupplied coordinates and size
fn width(&self) -> i32
Return the width of the image
fn height(&self) -> i32
Return the height of the image
unsafe fn as_ptr(&self) -> *mut c_void
Returns a void pointer of the image, for internal use
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
Retunrs a pointer of the image
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
Transforms a raw image pointer to an image
fn to_rgb_data(&self) -> Vec<u8>
Returns the underlying raw rgb image data
fn to_raw_data(&self) -> *const *const u8
Returns the underlying raw image data
fn to_rgb(&self) -> Result<RgbImage, FltkError>
Transforms the image into an RgbImage
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
Scales the image
fn count(&self) -> u32
Return the count of an image
fn data_w(&self) -> u32
Gets the image's data width
fn data_h(&self) -> u32
Gets the image's data height
fn depth(&self) -> u32
Gets the image's depth
fn ld(&self) -> u32
Gets the image's line data size
fn inactive(&mut self)
Greys the image
fn into_png(self) -> Result<PngImage, FltkError>
Transforms an image to a PngImage
fn into_jpeg(self) -> Result<JpegImage, FltkError>
Transforms an image to a JpegImage
fn into_bmp(self) -> Result<BmpImage, FltkError>
Transforms an image to a BmpImage
unsafe fn delete(&mut self)
Deletes the image
fn was_deleted(&self) -> bool
Checks if the image was deleted
Implementors
impl ImageExt for BmpImage
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> u32
[src]
fn data_w(&self) -> u32
[src]
fn data_h(&self) -> u32
[src]
fn depth(&self) -> u32
[src]
fn ld(&self) -> u32
[src]
fn inactive(&mut self)
[src]
fn into_png(self) -> Result<PngImage, FltkError>
[src]
fn into_jpeg(self) -> Result<JpegImage, FltkError>
[src]
fn into_bmp(self) -> Result<BmpImage, FltkError>
[src]
unsafe fn delete(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
impl ImageExt for GifImage
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> u32
[src]
fn data_w(&self) -> u32
[src]
fn data_h(&self) -> u32
[src]
fn depth(&self) -> u32
[src]
fn ld(&self) -> u32
[src]
fn inactive(&mut self)
[src]
fn into_png(self) -> Result<PngImage, FltkError>
[src]
fn into_jpeg(self) -> Result<JpegImage, FltkError>
[src]
fn into_bmp(self) -> Result<BmpImage, FltkError>
[src]
unsafe fn delete(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
impl ImageExt for Image
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> u32
[src]
fn data_w(&self) -> u32
[src]
fn data_h(&self) -> u32
[src]
fn depth(&self) -> u32
[src]
fn ld(&self) -> u32
[src]
fn inactive(&mut self)
[src]
fn into_png(self) -> Result<PngImage, FltkError>
[src]
fn into_jpeg(self) -> Result<JpegImage, FltkError>
[src]
fn into_bmp(self) -> Result<BmpImage, FltkError>
[src]
unsafe fn delete(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
impl ImageExt for JpegImage
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> u32
[src]
fn data_w(&self) -> u32
[src]
fn data_h(&self) -> u32
[src]
fn depth(&self) -> u32
[src]
fn ld(&self) -> u32
[src]
fn inactive(&mut self)
[src]
fn into_png(self) -> Result<PngImage, FltkError>
[src]
fn into_jpeg(self) -> Result<JpegImage, FltkError>
[src]
fn into_bmp(self) -> Result<BmpImage, FltkError>
[src]
unsafe fn delete(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
impl ImageExt for PngImage
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> u32
[src]
fn data_w(&self) -> u32
[src]
fn data_h(&self) -> u32
[src]
fn depth(&self) -> u32
[src]
fn ld(&self) -> u32
[src]
fn inactive(&mut self)
[src]
fn into_png(self) -> Result<PngImage, FltkError>
[src]
fn into_jpeg(self) -> Result<JpegImage, FltkError>
[src]
fn into_bmp(self) -> Result<BmpImage, FltkError>
[src]
unsafe fn delete(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
impl ImageExt for RgbImage
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> u32
[src]
fn data_w(&self) -> u32
[src]
fn data_h(&self) -> u32
[src]
fn depth(&self) -> u32
[src]
fn ld(&self) -> u32
[src]
fn inactive(&mut self)
[src]
fn into_png(self) -> Result<PngImage, FltkError>
[src]
fn into_jpeg(self) -> Result<JpegImage, FltkError>
[src]
fn into_bmp(self) -> Result<BmpImage, FltkError>
[src]
unsafe fn delete(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
impl ImageExt for SharedImage
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> u32
[src]
fn data_w(&self) -> u32
[src]
fn data_h(&self) -> u32
[src]
fn depth(&self) -> u32
[src]
fn ld(&self) -> u32
[src]
fn inactive(&mut self)
[src]
fn into_png(self) -> Result<PngImage, FltkError>
[src]
fn into_jpeg(self) -> Result<JpegImage, FltkError>
[src]
fn into_bmp(self) -> Result<BmpImage, FltkError>
[src]
unsafe fn delete(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
impl ImageExt for SvgImage
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
unsafe fn as_ptr(&self) -> *mut c_void
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)