Trait fltk::prelude::ImageExt [−][src]
Defines the methods implemented by all image types
Required methods
fn copy(&self) -> Self where
Self: Sized,
[src]
Self: Sized,
Performs a deep copy of the image
fn draw(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]
Draws the image at the presupplied coordinates and size
fn width(&self) -> i32
[src]
Return the width of the image
fn height(&self) -> i32
[src]
Return the height of the image
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self where
Self: Sized,
[src]
Self: Sized,
fn to_rgb_data(&self) -> Vec<u8>
[src]
Returns the underlying raw rgb image data
fn to_raw_data(&self) -> *const *const u8
[src]
Returns the underlying raw image data
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
Transforms the image into an RgbImage
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
)
Scales the image
fn count(&self) -> u32
[src]
Return the count of an image
fn data_w(&self) -> u32
[src]
Gets the image's data width
fn data_h(&self) -> u32
[src]
Gets the image's data height
fn depth(&self) -> u32
[src]
Gets the image's depth
fn ld(&self) -> u32
[src]
Gets the image's line data size
fn inactive(&mut self)
[src]
Greys the image
fn into_png(self) -> Result<PngImage, FltkError> where
Self: Sized,
[src]
Self: Sized,
Transforms an image to a PngImage
fn into_jpeg(self) -> Result<JpegImage, FltkError> where
Self: Sized,
[src]
Self: Sized,
Transforms an image to a JpegImage
fn into_bmp(self) -> Result<BmpImage, FltkError> where
Self: Sized,
[src]
Self: Sized,
Transforms an image to a BmpImage
unsafe fn delete(img: Self) where
Self: Sized,
[src]
Self: Sized,
fn was_deleted(&self) -> bool
[src]
Checks if the image was deleted
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
unsafe fn into_image<I: ImageExt>(self) -> I where
Self: Sized,
[src]
Self: Sized,
Transforms an Image base into another Image
Safety
Can be unsafe if used to downcast to an image of different format
Implementors
impl ImageExt for BmpImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for GifImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for Image
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for JpegImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for Pixmap
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for PngImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for PnmImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for RgbImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for SharedImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for SvgImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for TiledImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for XbmImage
[src]
fn copy(&self) -> Self
[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_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 img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for XpmImage
[src]
fn copy(&self) -> Self
[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_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
)