#[repr(C)]pub struct QImage { /* private fields */ }
Expand description
Wrapper around QImage
class.
Implementations§
source§impl QImage
impl QImage
sourcepub fn load_from_file(filename: QString) -> Self
pub fn load_from_file(filename: QString) -> Self
Wrapper around QImage(const QString &fileName, const char *format = nullptr)
constructor.
sourcepub fn new(size: QSize, format: ImageFormat) -> Self
pub fn new(size: QSize, format: ImageFormat) -> Self
Wrapper around QImage(const QSize &, QImage::Format)
constructor.
sourcepub fn format(&self) -> ImageFormat
pub fn format(&self) -> ImageFormat
Wrapper around format()
method.
sourcepub fn fill(&mut self, color: QColor)
pub fn fill(&mut self, color: QColor)
Wrapper around fill(const QColor &)
method.
sourcepub fn set_pixel_color(&mut self, x: u32, y: u32, color: QColor)
pub fn set_pixel_color(&mut self, x: u32, y: u32, color: QColor)
Wrapper around setPixelColor(const QPoint &, const QColor &)
method.
sourcepub fn get_pixel_color(&self, x: u32, y: u32) -> QColor
pub fn get_pixel_color(&self, x: u32, y: u32) -> QColor
Wrapper around pixelColor(const QPoint &)
method.
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more