palapeli/libpala
slicerjob.cpp
Go to the documentation of this file.
109 //A modified version of QImage::copy, which avoids rendering errors even if rect is outside the bounds of the source image.
QSize size() const
bool end()
void setCompositionMode(CompositionMode mode)
void addPieceFromMask(int pieceID, const QImage &mask, const QPoint &offset=QPoint())
Generate a piece, and add it to the result set of this slicing job.
Definition: slicerjob.cpp:122
T value() const
By default, libpala will increase the minimum alpha value of input images to avoid invisible pieces...
Definition: slicer.h:70
void addRelation(int pieceID1, int pieceID2)
Define a neighborship relation between two pieces.
Definition: slicerjob.cpp:132
QVariant argument(const QByteArray &key) const
Returns an argument of this job, i.e. the value that the user has chosen for the slicing algorithm's ...
Definition: slicerjob.cpp:54
Representation of an operational mode of a slicing algorithm.
Definition: slicermode.h:46
SlicerJob(const QImage &image, const QMap< QByteArray, QVariant > &args)
Creates a new slicer job.
Definition: slicerjob.cpp:42
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, QFlags< Qt::ImageConversionFlag > flags)
const Pala::SlicerMode * mode() const
Returns the selected slicer mode, or 0 if the slicer does not define any slicer modes.
Definition: slicerjob.cpp:64
QImage safeQImageCopy(const QImage &source, const QRect &rect)
Definition: slicerjob.cpp:110
QSize size() const
void addPiece(int pieceID, const QImage &image, const QPoint &offset=QPoint())
Add a generated piece to the result set of this slicing job.
Definition: slicerjob.cpp:103
Format format() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.