|
|
| BitmapImage (const BitmapImage &) |
| |
|
| BitmapImage (const QRect &rectangle, const QColor &color) |
| |
|
| BitmapImage (const QPoint &topLeft, const QImage &image) |
| |
|
| BitmapImage (const QPoint &topLeft, const QString &path) |
| |
|
BitmapImage & | operator= (const BitmapImage &a) |
| |
|
BitmapImage * | clone () override |
| |
|
void | loadFile () override |
| |
|
void | unloadFile () override |
| |
|
bool | isLoaded () override |
| |
|
quint64 | memoryUsage () override |
| |
|
void | paintImage (QPainter &painter) |
| |
|
void | paintImage (QPainter &painter, QImage &image, QRect sourceRect, QRect destRect) |
| |
|
QImage * | image () |
| |
|
void | setImage (QImage *pImg) |
| |
|
BitmapImage | copy () |
| |
|
BitmapImage | copy (QRect rectangle) |
| |
|
void | paste (BitmapImage *, QPainter::CompositionMode cm=QPainter::CompositionMode_SourceOver) |
| |
|
void | moveTopLeft (QPoint point) |
| |
|
void | moveTopLeft (QPointF point) |
| |
|
void | transform (QRect rectangle, bool smoothTransform) |
| |
|
void | transform (QRectF rectangle, bool smoothTransform) |
| |
|
BitmapImage | transformed (QRect selection, QTransform transform, bool smoothTransform) |
| |
|
BitmapImage | transformed (QRect rectangle, bool smoothTransform) |
| |
|
BitmapImage | transformed (QRectF rectangle, bool smoothTransform) |
| |
|
bool | contains (QPoint P) |
| |
|
bool | contains (QPointF P) |
| |
| void | autoCrop () |
| | Removes any transparent borders by reducing the boundaries. More...
|
| |
|
QRgb | pixel (int x, int y) |
| |
|
QRgb | pixel (QPoint p) |
| |
|
void | setPixel (int x, int y, QRgb color) |
| |
|
void | setPixel (QPoint p, QRgb color) |
| |
|
void | fillNonAlphaPixels (const QRgb color) |
| |
|
QRgb | constScanLine (int x, int y) const |
| |
|
void | scanLine (int x, int y, QRgb color) |
| |
|
void | clear () |
| |
|
void | clear (QRect rectangle) |
| |
|
void | clear (QRectF rectangle) |
| |
|
void | drawLine (QPointF P1, QPointF P2, QPen pen, QPainter::CompositionMode cm, bool antialiasing) |
| |
|
void | drawRect (QRectF rectangle, QPen pen, QBrush brush, QPainter::CompositionMode cm, bool antialiasing) |
| |
|
void | drawEllipse (QRectF rectangle, QPen pen, QBrush brush, QPainter::CompositionMode cm, bool antialiasing) |
| |
|
void | drawPath (QPainterPath path, QPen pen, QBrush brush, QPainter::CompositionMode cm, bool antialiasing) |
| |
|
QPoint | topLeft () |
| |
|
QPoint | topRight () |
| |
|
QPoint | bottomLeft () |
| |
|
QPoint | bottomRight () |
| |
|
int | left () |
| |
|
int | right () |
| |
|
int | top () |
| |
|
int | bottom () |
| |
|
int | width () |
| |
|
int | height () |
| |
|
QSize | size () |
| |
|
PegbarResult | findLeft (QRectF rect, int grayValue) |
| |
|
PegbarResult | findTop (QRectF rect, int grayValue) |
| |
|
QRect & | bounds () |
| |
| bool | isMinimallyBounded () const |
| | Determines if the BitmapImage is minimally bounded. More...
|
| |
|
void | enableAutoCrop (bool b) |
| |
|
Status | writeFile (const QString &filename) |
| |
|
| KeyFrame (const KeyFrame &k2) |
| |
|
int | pos () const |
| |
|
void | setPos (int position) |
| |
|
int | length () const |
| |
|
void | setLength (int len) |
| |
|
void | modification () |
| |
|
void | setModified (bool b) |
| |
|
bool | isModified () const |
| |
|
void | setSelected (bool b) |
| |
|
bool | isSelected () const |
| |
|
QString | fileName () const |
| |
|
void | setFileName (QString strFileName) |
| |
|
void | addEventListener (KeyFrameEventListener *) |
| |
|
void | removeEventListner (KeyFrameEventListener *) |
| |
Definition at line 25 of file bitmapimage.h.
Updates the bounds after a draw operation with the composition mode cm.
- Parameters
-
| [in] | sourceBounds | The bounds of the source used for drawcall. |
| [in] | isSourceMinBounds | Is sourceBounds the minimal bounds for the source image |
| [in] | cm | The composition mode that will be used for the draw image |
For a call to draw image of a QPainter (initialized with mImage) with an argument of source, this function intelligently calculates the bounds. It will attempt to preserve minimum bounds based on the composition mode.
This works baed on the principle that some minimal bounds can be determined solely by the minimal bounds of this and source, depending on the value of cm. Some composition modes only expand, or have no affect on the bounds.
- Warning
- The draw operation described by the arguments of this function needs to be called after this function is run, or the bounds will be out of sync. If mBounds is null, no draw operation needs to be performed.
Definition at line 325 of file bitmapimage.cpp.