#include <FxUIPixmap.h>
Definition at line 45 of file FxUIPixmap.h.
◆ AspectRatioMode
| Enumerator |
|---|
| IgnoreAspectRatio | |
| KeepAspectRatio | |
| KeepAspectRatioByExpanding | |
Definition at line 48 of file FxUIPixmap.h.
◆ TransformationMode
| Enumerator |
|---|
| FastTransformation | |
| SmoothTransformation | |
Definition at line 55 of file FxUIPixmap.h.
◆ CFxUIPixmap() [1/5]
| CFxUIPixmap::CFxUIPixmap |
( |
| ) |
|
◆ CFxUIPixmap() [2/5]
| CFxUIPixmap::CFxUIPixmap |
( |
int | width, |
|
|
int | height ) |
Parameterized Constructor
◆ CFxUIPixmap() [3/5]
| CFxUIPixmap::CFxUIPixmap |
( |
const CFxUIString & | fileName | ) |
|
◆ CFxUIPixmap() [4/5]
◆ CFxUIPixmap() [5/5]
◆ ~CFxUIPixmap()
| CFxUIPixmap::~CFxUIPixmap |
( |
| ) |
|
◆ fill()
Fills the pixmap with the given color.
- Parameters
-
◆ isNull()
| bool CFxUIPixmap::isNull |
( |
| ) |
|
Returns true if this is a null pixmap; otherwise returns false.
- Returns
- bool
◆ load()
Loads a pixmap from the file with the given fileName. Returns true if the pixmap was successfully loaded, otherwise invalidates the pixmap and returns false.
- Parameters
-
- Returns
- bool
◆ loadFromData()
Loads a pixmap from the given binary data. Returns true if the pixmap was loaded successfully, otherwise invalidates the pixmap and returns false.
- Parameters
-
- Returns
- bool
◆ operator FxNativePixmap &()
◆ operator=()
◆ save()
| bool CFxUIPixmap::save |
( |
const CFxUIString & | fileName, |
|
|
const char * | format = nullptr, |
|
|
int | quality = -1 ) const |
Saves the pixmap to the file with the given fileName using the specified image file format and quality factor. Returns true if successful, otherwise returns false.
- Parameters
-
- Returns
- bool
◆ scaled()
Returns a copy of the pixmap scaled to a rectangle with the given width and height according to the given aspectRatioMode and transformMode.
- Parameters
-
- Returns
- CFxUIPixmap
◆ scaledToWidth()
Returns a scaled copy of the image. The returned image is scaled to the given width using the specified transformation mode.
- Parameters
-
- Returns
- CFxUIPixmap
◆ setUrl()
◆ size()
Returns the size of the pixmap.
- Returns
- CFxUISize
◆ toImage()
Converts the pixmap to a CFxUIImage. Returns a null image if the conversion fails.
- Returns
- CFxUIImage
◆ url()
◆ width()
| int CFxUIPixmap::width |
( |
| ) |
|
Returns the width of the pixmap.
- Returns
- int
◆ m_pImpl
| CFxUIPixmapImpl* CFxUIPixmap::m_pImpl = nullptr |
|
protected |
The documentation for this class was generated from the following file: