Struct fltk::image::GifImage [−][src]
Creates a struct holding a GIF image
Implementations
impl GifImage
[src]
pub fn load<P: AsRef<Path>>(path: P) -> Result<GifImage, FltkError>
[src]
Loads the image from a filesystem path, doesn't check for the validity of the data
pub fn from_data(data: &[u8]) -> Result<GifImage, FltkError>
[src]
Loads the image from data/memory
Trait Implementations
impl Clone for GifImage
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GifImage
[src]
impl Drop for GifImage
[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 Send for GifImage
[src]
impl Sync for GifImage
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,