13 const QString scalingMethod,
const QString scalingFilter, QObject *parent)
24 file->setScalingMethod(sm);
27 const QString &basePath = QFileInfo(baseName).absolutePath();
28 const QString &absoluteFilePath = QFileInfo(fileName).absoluteFilePath();
33 :
Node(layer->image(), layer, parent)
58 file->setScalingMethod(sm);
61 const QString basePath = QFileInfo(file->path()).absolutePath();
62 const QString absoluteFilePath = QFileInfo(fileName).absoluteFilePath();
85 QString method =
"None";
88 method =
"ToImageSize";
90 method =
"ToImagePPI";
99 return file->scalingFilter();
108 const QFileInfo fi(filePath);
109 if (fi.isSymLink()) {
110 filePath = fi.symLinkTarget();
114 if (!basePath.isEmpty()) {
115 QDir directory(basePath);
116 filePath = directory.relativeFilePath(filePath);
const quint8 OPACITY_OPAQUE_U8
QString getFileNameFromAbsolute(const QString &basePath, QString filePath)
getFileNameFromAbsolute referenced from the fileLayer dialog, this will jumps through all the hoops t...
void resetCache()
makes the file layer to reload the connected image from disk
QString scalingFilter() const
scalingFilter returns the filter with which the file referenced is scaled.
QString scalingMethod() const
scalingMethod returns how the file referenced is scaled.
QString type() const override
type Krita has several types of nodes, split in layers and masks. Group layers can contain other laye...
void setProperties(QString fileName, QString scalingMethod=QString("None"), QString scalingFilter=QString("Bicubic"))
setProperties Change the properties of the file layer.
The KisFileLayer class loads a particular file as a layer into the layer stack.
#define KIS_ASSERT_RECOVER_RETURN_VALUE(cond, val)
#define KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cond, val)
#define KIS_ASSERT_RECOVER_RETURN(cond)