Krita
Document.cpp
202 bool Document::setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
206 const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->colorSpace(colorModel, colorDepth, colorProfile);
211 KoColorConversionTransformation::HighQuality | KoColorConversionTransformation::NoOptimization);
509 return d->document->exportDocumentSync(filename, outputFormat, exportConfiguration.configuration());
622 node = new Node(image, new KisShapeLayer(d->document->shapeController(), image, name, OPACITY_OPAQUE_U8));
652 FileLayer *Document::createFileLayer(const QString &name, const QString fileName, const QString scalingMethod)
661 FilterLayer *Document::createFilterLayer(const QString &name, Filter &filter, Selection &selection)
670 FillLayer *Document::createFillLayer(const QString &name, const QString generatorName, InfoObject &configuration, Selection &selection)
679 KisFilterConfigurationSP config = generator->factoryConfiguration(KisGlobalResourcesInterface::instance());
708 FilterMask *Document::createFilterMask(const QString &name, Filter &filter, const Node *selection_source)
730 FilterMask *Document::createFilterMask(const QString &name, Filter &filter, Selection &selection)
1109 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:1097
QList< qreal > verticalGuides() const
verticalGuides The vertical guide lines.
Definition: Document.cpp:839
void setWidth(int width)
void unlock()
Unlocks the image and starts/resumes all the pending internal jobs.
Definition: Document.cpp:800
void rotateImage(double radians)
rotateImage Rotate the image by the given radians.
Definition: Document.cpp:551
void setFullClipRangeStartTime(int startTime)
set start time of animation
Definition: Document.cpp:979
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:191
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:202
Node * nodeByUniqueID(const QUuid &id) const
nodeByUniqueID searches the node tree for a node with the given name and returns it.
Definition: Document.cpp:162
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:730
void scaleImage(int w, int h, int xres, int yres, QString strategy)
scaleImage
Definition: Document.cpp:535
Q_SCRIPTABLE Q_NOREPLY void start()
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:661
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:892
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:699
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:455
QList< qreal > horizontalGuides() const
horizontalGuides The horizontal guides.
Definition: Document.cpp:824
TransformMask * createTransformMask(const QString &name)
createTransformMask Creates a transform mask, which can be used to apply a transformation non-destruc...
Definition: Document.cpp:763
SelectionMask * createSelectionMask(const QString &name)
createSelectionMask Creates a selection mask, which can be used to store selections.
Definition: Document.cpp:745
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:643
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:217
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:492
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:421
void shearImage(double angleX, double angleY)
shearImage shear the whole image.
Definition: Document.cpp:560
void setGuidesVisible(bool visible)
setGuidesVisible set guides visible on this document.
Definition: Document.cpp:908
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:818
void setHeight(int height)
void setDocumentInfo(const QString &document)
setDocumentInfo set the Document information to the information contained in document
Definition: Document.cpp:248
bool saveAs(const QString &filename)
saveAs save the document under the filename.
Definition: Document.cpp:580
bool importAnimation(const QList< QString > &files, int firstFrame, int step)
Import an image sequence of files from a directory.
Definition: Document.cpp:948
void removeAnnotation(const QString &type)
removeAnnotation remove the specified annotation from the image
Definition: Document.cpp:1117
The TransparencyMask class A transparency mask is a mask type node that can be used to show and hide ...
Definition: TransparencyMask.h:23
QString colorDepth() const
colorDepth A string describing the color depth of the image:
Definition: Document.cpp:173
FileLayer * createFileLayer(const QString &name, const QString fileName, const QString scalingMethod)
createFileLayer returns a layer that shows an external image.
Definition: Document.cpp:652
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:1109
void setSelection(Selection *value)
setSelection set or replace the global selection
Definition: Document.cpp:344
QString annotationDescription(const QString &type) const
annotationDescription gets the pretty description for the current annotation
Definition: Document.cpp:1090
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:336
TransparencyMask * createTransparencyMask(const QString &name)
createTransparencyMask Creates a transparency mask, which can be used to assign transparency to regio...
Definition: Document.cpp:754
QString colorModel() const
colorModel retrieve the current color model of this document:
Definition: Document.cpp:179
QImage thumbnail(int w, int h) const
thumbnail create a thumbnail of the given dimensions.
Definition: Document.cpp:787
void setGuidesLocked(bool locked)
setGuidesLocked set guides locked on this document
Definition: Document.cpp:916
void setHorizontalGuides(const QList< qreal > &lines)
setHorizontalGuides replace all existing horizontal guides with the entries in the list.
Definition: Document.cpp:876
QString toLower() const const
bool modified() const
modified returns true if the document has unsaved modifications.
Definition: Document.cpp:924
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:327
void setFileName(QString value)
setFileName set the full path of the document to
Definition: Document.cpp:264
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:154
QList< Node * > topLevelNodes() const
toplevelNodes return a list with all top level nodes in the image graph
Definition: Document.cpp:146
bool exportImage(const QString &filename, const InfoObject &exportConfiguration)
exportImage export the image, without changing its URL to the given path.
Definition: Document.cpp:502
void setResolution(int value)
setResolution set the resolution of the image; this does not scale the image
Definition: Document.cpp:313
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:812
QString documentInfo() const
documentInfo creates and XML document representing document and author information.
Definition: Document.cpp:240
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:520
void setPlayBackRange(int start, int stop)
set temporary playback range of document
Definition: Document.cpp:1022
void waitForDone()
Wait for all the internal image jobs to complete and return without locking the image.
Definition: Document.cpp:806
CloneLayer * createCloneLayer(const QString &name, const Node *source)
createCloneLayer
Definition: Document.cpp:689
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:670
void lock()
[low-level] Lock the image without waiting for all the internal job queues are processed
Definition: Document.cpp:794
void setYRes(double yRes) const
setYRes set the vertical resolution of the image to yRes in pixels per inch
Definition: Document.cpp:441
Node * createNode(const QString &name, const QString &nodeType)
Definition: Document.cpp:595
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:781
ColorizeMask * createColorizeMask(const QString &name)
createColorizeMask Creates a colorize mask, which can be used to color fill via keystrokes.
Definition: Document.cpp:772
void setName(QString value)
setName sets the name of the document to value.
Definition: Document.cpp:297
char * data()
bool setBackgroundColor(const QColor &color)
setBackgroundColor sets the background color of the document.
Definition: Document.cpp:226
bool close()
close Close the document: remove it from Krita's internal list of documents and close all views.
Definition: Document.cpp:469
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:1063
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 16 2022 03:57:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 16 2022 03:57:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.