[−][src]Struct fltk::image::RgbImage
Creates a struct holding a raw RGB image
Implementations
impl RgbImage
[src]
pub fn new(
data: &Vec<u8>,
w: i32,
h: i32,
depth: u32
) -> Result<RgbImage, FltkError>
[src]
data: &Vec<u8>,
w: i32,
h: i32,
depth: u32
) -> Result<RgbImage, FltkError>
Initializes a new raw RgbImage
pub fn into_parts(self) -> (Vec<u8>, i32, i32)
[src]
Deconstructs a raw RgbImage into parts
pub fn into_png_image(self) -> Result<PngImage, FltkError>
[src]
Transforms the RgbImage to a PngImage
pub fn into_jpg_image(self) -> Result<JpegImage, FltkError>
[src]
Transforms the RgbImage to a JpegImage
pub fn into_bmp_image(self) -> Result<BmpImage, FltkError>
[src]
Transforms the RgbImage to a BmpImage
Trait Implementations
impl Clone for RgbImage
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RgbImage
[src]
impl Drop for RgbImage
[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_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(&self) -> Vec<u8>
[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
)
impl Send for RgbImage
[src]
impl Sync for RgbImage
[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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,