Struct qmetaobject::QImage[][src]

#[repr(C)]
pub struct QImage { /* fields omitted */ }

Wrapper around QImage class.

Implementations

impl QImage[src]

pub fn load_from_file(filename: QString) -> QImage[src]

pub fn new(size: QSize, format: ImageFormat) -> QImage[src]

Wrapper around QImage(const QSize &, QImage::Format) constructor.

pub fn size(&self) -> QSize[src]

Wrapper around size() method.

pub fn format(&self) -> ImageFormat[src]

Wrapper around format() method.

pub fn fill(&mut self, color: QColor)[src]

Wrapper around fill(const QColor &) method.

pub fn set_pixel_color(&mut self, x: u32, y: u32, color: QColor)[src]

pub fn get_pixel_color(&self, x: u32, y: u32) -> QColor[src]

Wrapper around pixelColor(const QPoint &) method.

Trait Implementations

impl Clone for QImage[src]

impl Default for QImage[src]

impl Drop for QImage[src]

impl From<QImage> for QPixmap[src]

impl From<QPixmap> for QImage[src]

impl PartialEq<QImage> for QImage[src]

impl QMetaType for QImage[src]

Auto Trait Implementations

impl RefUnwindSafe for QImage

impl Send for QImage

impl Sync for QImage

impl Unpin for QImage

impl UnwindSafe for QImage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PropertyType for T where
    T: QMetaType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.