Krita
Document.cpp
205 bool Document::setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
209 const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->colorSpace(colorModel, colorDepth, colorProfile);
214 KoColorConversionTransformation::HighQuality | KoColorConversionTransformation::NoOptimization);
512 return d->document->exportDocumentSync(filename, outputFormat, exportConfiguration.configuration());
626 node = new Node(image, new KisShapeLayer(d->document->shapeController(), image, name, OPACITY_OPAQUE_U8));
656 FileLayer *Document::createFileLayer(const QString &name, const QString fileName, const QString scalingMethod, const QString scalingFilter)
665 FilterLayer *Document::createFilterLayer(const QString &name, Filter &filter, Selection &selection)
674 FillLayer *Document::createFillLayer(const QString &name, const QString generatorName, InfoObject &configuration, Selection &selection)
683 KisFilterConfigurationSP config = generator->factoryConfiguration(KisGlobalResourcesInterface::instance());
712 FilterMask *Document::createFilterMask(const QString &name, Filter &filter, const Node *selection_source)
734 FilterMask *Document::createFilterMask(const QString &name, Filter &filter, Selection &selection)
1119 void Document::setAnnotation(const QString &key, const QString &description, const QByteArray &annotation)
void append(const T &value)
T & first()
QString toString(int indent) const const
QByteArray annotation(const QString &type)
annotation the actual data for the annotation for this type.
Definition: Document.cpp:1107
QList< qreal > verticalGuides() const
verticalGuides The vertical guide lines.
Definition: Document.cpp:843
void setWidth(int width)
void unlock()
Unlocks the image and starts/resumes all the pending internal jobs.
Definition: Document.cpp:804
void rotateImage(double radians)
rotateImage Rotate the image by the given radians.
Definition: Document.cpp:554
void setFullClipRangeStartTime(int startTime)
set start time of animation
Definition: Document.cpp:989
QSize size() const const
bool batchmode() const
Batchmode means that no actions on the document should show dialogs or popups.
Definition: Document.cpp:101
bool setColorProfile(const QString &colorProfile)
setColorProfile set the color profile of the image to the given profile.
Definition: Document.cpp:194
void stop(Ekos::AlignState mode)
bool setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
setColorSpace convert the nodes and the image to the given colorspace.
Definition: Document.cpp:205
Node * nodeByUniqueID(const QUuid &id) const
nodeByUniqueID searches the node tree for a node with the given name and returns it.
Definition: Document.cpp:165
FilterMask * createFilterMask(const QString &name, Filter &filter, Selection &selection)
createFilterMask Creates a filter mask object that much like a filterlayer can apply a filter non-des...
Definition: Document.cpp:734
void scaleImage(int w, int h, int xres, int yres, QString strategy)
scaleImage
Definition: Document.cpp:538
FilterLayer * createFilterLayer(const QString &name, Filter &filter, Selection &selection)
createFilterLayer creates a filter layer, which is a layer that represents a filter applied non-destr...
Definition: Document.cpp:665
The ColorizeMask class A colorize mask is a mask type node that can be used to color in line art.
Definition: ColorizeMask.h:59
void setVerticalGuides(const QList< qreal > &lines)
setVerticalGuides replace all existing horizontal guides with the entries in the list.
Definition: Document.cpp:896
FileLayer * createFileLayer(const QString &name, const QString fileName, const QString scalingMethod, const QString scalingFilter="Bicubic")
createFileLayer returns a layer that shows an external image.
Definition: Document.cpp:656
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
QByteArray toLatin1() const const
VectorLayer * createVectorLayer(const QString &name)
createVectorLayer Creates a vector layer that can contain vector shapes.
Definition: Document.cpp:703
The GroupLayer class A group layer is a layer that can contain other layers.
Definition: GroupLayer.h:29
Node * activeNode() const
activeNode retrieve the node that is currently active in the currently active window
Definition: Document.cpp:113
QByteArray pixelData(int x, int y, int w, int h) const
pixelData reads the given rectangle from the image projection and returns it as a byte array.
Definition: Document.cpp:458
QList< qreal > horizontalGuides() const
horizontalGuides The horizontal guides.
Definition: Document.cpp:828
TransformMask * createTransformMask(const QString &name)
createTransformMask Creates a transform mask, which can be used to apply a transformation non-destruc...
Definition: Document.cpp:767
SelectionMask * createSelectionMask(const QString &name)
createSelectionMask Creates a selection mask, which can be used to store selections.
Definition: Document.cpp:749
QVariant property(const QString &key)
return the value for the property identified by key, or None if there is no such key.
Definition: InfoObject.cpp:72
GroupLayer * createGroupLayer(const QString &name)
createGroupLayer Returns a grouplayer object.
Definition: Document.cpp:647
The TransformMask class A transform mask is a mask type node that can be used to store transformation...
Definition: TransformMask.h:22
QColor backgroundColor()
backgroundColor returns the current background color of the document.
Definition: Document.cpp:220
The SelectionMask class A selection mask is a mask type node that can be used to store selections.
Definition: SelectionMask.h:26
int size() const const
void crop(int x, int y, int w, int h)
crop the image to rectangle described by x, y, w and h
Definition: Document.cpp:495
Q_SCRIPTABLE Q_NOREPLY void start()
QString i18n(const char *text, const TYPE &arg...)
void setXRes(double xRes) const
setXRes set the horizontal resolution of the image to xRes in pixels per inch
Definition: Document.cpp:424
void shearImage(double angleX, double angleY)
shearImage shear the whole image.
Definition: Document.cpp:563
void setGuidesVisible(bool visible)
setGuidesVisible set guides visible on this document.
Definition: Document.cpp:912
The CloneLayer class A clone layer is a layer that takes a reference inside the image and shows the e...
Definition: CloneLayer.h:25
void refreshProjection()
Starts a synchronous recomposition of the projection: everything will wait until the image is fully r...
Definition: Document.cpp:822
void setHeight(int height)
void setDocumentInfo(const QString &document)
setDocumentInfo set the Document information to the information contained in document
Definition: Document.cpp:251
bool saveAs(const QString &filename)
saveAs save the document under the filename.
Definition: Document.cpp:583
bool importAnimation(const QList< QString > &files, int firstFrame, int step)
Import an image sequence of files from a directory.
Definition: Document.cpp:958
void removeAnnotation(const QString &type)
removeAnnotation remove the specified annotation from the image
Definition: Document.cpp:1127
The TransparencyMask class A transparency mask is a mask type node that can be used to show and hide ...
Definition: TransparencyMask.h:23
Q_SCRIPTABLE CaptureState status()
QString colorDepth() const
colorDepth A string describing the color depth of the image:
Definition: Document.cpp:176
The FillLayer class A fill layer is much like a filter layer in that it takes a name and filter.
Definition: FillLayer.h:24
void setAnnotation(const QString &type, const QString &description, const QByteArray &annotation)
setAnnotation Add the given annotation to the document
Definition: Document.cpp:1119
void setSelection(Selection *value)
setSelection set or replace the global selection
Definition: Document.cpp:347
QString annotationDescription(const QString &type) const
annotationDescription gets the pretty description for the current annotation
Definition: Document.cpp:1100
The FileLayer class A file layer is a layer that can reference an external image and show said refere...
Definition: FileLayer.h:26
void setActiveNode(Node *value)
setActiveNode make the given node active in the currently active view and window
Definition: Document.cpp:130
Selection * selection() const
selection Create a Selection object around the global selection, if there is one.
Definition: Document.cpp:339
KSharedConfigPtr config()
TransparencyMask * createTransparencyMask(const QString &name)
createTransparencyMask Creates a transparency mask, which can be used to assign transparency to regio...
Definition: Document.cpp:758
QString colorModel() const
colorModel retrieve the current color model of this document:
Definition: Document.cpp:182
QImage thumbnail(int w, int h) const
thumbnail create a thumbnail of the given dimensions.
Definition: Document.cpp:791
void setGuidesLocked(bool locked)
setGuidesLocked set guides locked on this document
Definition: Document.cpp:920
void setHorizontalGuides(const QList< qreal > &lines)
setHorizontalGuides replace all existing horizontal guides with the entries in the list.
Definition: Document.cpp:880
QString toLower() const const
bool modified() const
modified returns true if the document has unsaved modifications.
Definition: Document.cpp:928
void resize(int size)
Node * rootNode() const
rootNode the root node is the invisible group layer that contains the entire node hierarchy.
Definition: Document.cpp:330
void setFileName(QString value)
setFileName set the full path of the document to
Definition: Document.cpp:267
QMap< QString, QVariant > properties() const
Return all properties this InfoObject manages.
Definition: InfoObject.cpp:45
Node * nodeByName(const QString &name) const
nodeByName searches the node tree for a node with the given name and returns it
Definition: Document.cpp:155
QList< Node * > topLevelNodes() const
toplevelNodes return a list with all top level nodes in the image graph
Definition: Document.cpp:147
void setModified(bool modified)
setModified sets the modified status of the document
Definition: Document.cpp:934
bool exportImage(const QString &filename, const InfoObject &exportConfiguration)
exportImage export the image, without changing its URL to the given path.
Definition: Document.cpp:505
void setResolution(int value)
setResolution set the resolution of the image; this does not scale the image
Definition: Document.cpp:316
The VectorLayer class A vector layer is a special layer that stores and shows vector shapes.
Definition: VectorLayer.h:31
void setX(int x)
void setY(int y)
bool tryBarrierLock()
Tries to lock the image without waiting for the jobs to finish.
Definition: Document.cpp:816
QString documentInfo() const
documentInfo creates and XML document representing document and author information.
Definition: Document.cpp:243
void resizeImage(int x, int y, int w, int h)
resizeImage resizes the canvas to the given left edge, top edge, width and height.
Definition: Document.cpp:523
void setPlayBackRange(int start, int stop)
set temporary playback range of document
Definition: Document.cpp:1032
void waitForDone()
Wait for all the internal image jobs to complete and return without locking the image.
Definition: Document.cpp:810
CloneLayer * createCloneLayer(const QString &name, const Node *source)
createCloneLayer
Definition: Document.cpp:693
The FilterMask class A filter mask, unlike a filter layer, will add a non-destructive filter to the c...
Definition: FilterMask.h:28
FillLayer * createFillLayer(const QString &name, const QString generatorName, InfoObject &configuration, Selection &selection)
createFillLayer creates a fill layer object, which is a layer
Definition: Document.cpp:674
void lock()
[low-level] Lock the image without waiting for all the internal job queues are processed
Definition: Document.cpp:798
void setYRes(double yRes) const
setYRes set the vertical resolution of the image to yRes in pixels per inch
Definition: Document.cpp:444
Node * createNode(const QString &name, const QString &nodeType)
Definition: Document.cpp:599
QImage projection(int x=0, int y=0, int w=0, int h=0) const
projection creates a QImage from the rendered image or a cutout rectangle.
Definition: Document.cpp:785
ColorizeMask * createColorizeMask(const QString &name)
createColorizeMask Creates a colorize mask, which can be used to color fill via keystrokes.
Definition: Document.cpp:776
void setName(QString value)
setName sets the name of the document to value.
Definition: Document.cpp:300
char * data()
bool setBackgroundColor(const QColor &color)
setBackgroundColor sets the background color of the document.
Definition: Document.cpp:229
bool close()
close Close the document: remove it from Krita's internal list of documents and close all views.
Definition: Document.cpp:472
The FilterLayer class A filter layer will, when compositing, take the composited image up to the poin...
Definition: FilterLayer.h:33
QVariant property(const char *name) const const
QStringList annotationTypes() const
annotationTypes returns the list of annotations present in the document.
Definition: Document.cpp:1073
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:09:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:09:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.