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