Krita
Document.cpp
207bool Document::setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
211 const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->colorSpace(colorModel, colorDepth, colorProfile);
354 d->document->image()->undoAdapter()->addCommand(new KisSetGlobalSelectionCommand(d->document->image(), value->selection()));
357 d->document->image()->undoAdapter()->addCommand(new KisSetGlobalSelectionCommand(d->document->image(), nullptr));
628 node = new Node(image, new KisShapeLayer(d->document->shapeController(), image, name, OPACITY_OPAQUE_U8));
667FilterLayer *Document::createFilterLayer(const QString &name, Filter &filter, Selection &selection)
676FillLayer *Document::createFillLayer(const QString &name, const QString generatorName, InfoObject &configuration, Selection &selection)
685 KisFilterConfigurationSP config = generator->factoryConfiguration(KisGlobalResourcesInterface::instance());
714FilterMask *Document::createFilterMask(const QString &name, Filter &filter, const Node *selection_source)
736FilterMask *Document::createFilterMask(const QString &name, Filter &filter, Selection &selection)
1121void Document::setAnnotation(const QString &key, const QString &description, const QByteArray &annotation)
The CloneLayer class A clone layer is a layer that takes a reference inside the image and shows the e...
Definition CloneLayer.h:26
The ColorizeMask class A colorize mask is a mask type node that can be used to color in line art.
Definition ColorizeMask.h:60
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:787
TransformMask * createTransformMask(const QString &name)
createTransformMask Creates a transform mask, which can be used to apply a transformation non-destruc...
Definition Document.cpp:769
void setGuidesLocked(bool locked)
setGuidesLocked set guides locked on this document
Definition Document.cpp:922
void setSelection(Selection *value)
setSelection set or replace the global selection
Definition Document.cpp:349
SelectionMask * createSelectionMask(const QString &name)
createSelectionMask Creates a selection mask, which can be used to store selections.
Definition Document.cpp:751
QList< Node * > topLevelNodes() const
toplevelNodes return a list with all top level nodes in the image graph
Definition Document.cpp:149
bool close()
close Close the document: remove it from Krita's internal list of documents and close all views.
Definition Document.cpp:474
bool modified() const
modified returns true if the document has unsaved modifications.
Definition Document.cpp:930
void setDocumentInfo(const QString &document)
setDocumentInfo set the Document information to the information contained in document
Definition Document.cpp:253
QImage thumbnail(int w, int h) const
thumbnail create a thumbnail of the given dimensions.
Definition Document.cpp:793
ColorizeMask * createColorizeMask(const QString &name)
createColorizeMask Creates a colorize mask, which can be used to color fill via keystrokes.
Definition Document.cpp:778
bool importAnimation(const QList< QString > &files, int firstFrame, int step)
Import an image sequence of files from a directory.
Definition Document.cpp:960
bool setBackgroundColor(const QColor &color)
setBackgroundColor sets the background color of the document.
Definition Document.cpp:231
void setActiveNode(Node *value)
setActiveNode make the given node active in the currently active view and window
Definition Document.cpp:132
void setHorizontalGuides(const QList< qreal > &lines)
setHorizontalGuides replace all existing horizontal guides with the entries in the list.
Definition Document.cpp:882
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:525
Node * rootNode() const
rootNode the root node is the invisible group layer that contains the entire node hierarchy.
Definition Document.cpp:332
QString colorModel() const
colorModel retrieve the current color model of this document:
Definition Document.cpp:184
bool saveAs(const QString &filename)
saveAs save the document under the filename.
Definition Document.cpp:585
void unlock()
Unlocks the image and starts/resumes all the pending internal jobs.
Definition Document.cpp:806
Node * activeNode() const
activeNode retrieve the node that is currently active in the currently active window
Definition Document.cpp:115
QStringList annotationTypes() const
annotationTypes returns the list of annotations present in the document.
Definition Document.cpp:1075
void rotateImage(double radians)
rotateImage Rotate the image by the given radians.
Definition Document.cpp:556
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:676
bool setColorProfile(const QString &colorProfile)
setColorProfile set the color profile of the image to the given profile.
Definition Document.cpp:196
void setPlayBackRange(int start, int stop)
set temporary playback range of document
Definition Document.cpp:1034
void scaleImage(int w, int h, int xres, int yres, QString strategy)
scaleImage
Definition Document.cpp:540
void setName(QString value)
setName sets the name of the document to value.
Definition Document.cpp:302
void setXRes(double xRes) const
setXRes set the horizontal resolution of the image to xRes in pixels per inch
Definition Document.cpp:426
CloneLayer * createCloneLayer(const QString &name, const Node *source)
createCloneLayer
Definition Document.cpp:695
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:207
void removeAnnotation(const QString &type)
removeAnnotation remove the specified annotation from the image
Definition Document.cpp:1129
bool batchmode() const
Batchmode means that no actions on the document should show dialogs or popups.
Definition Document.cpp:103
void waitForDone()
Wait for all the internal image jobs to complete and return without locking the image.
Definition Document.cpp:812
void setGuidesVisible(bool visible)
setGuidesVisible set guides visible on this document.
Definition Document.cpp:914
void setModified(bool modified)
setModified sets the modified status of the document
Definition Document.cpp:936
QList< qreal > verticalGuides() const
verticalGuides The vertical guide lines.
Definition Document.cpp:845
void refreshProjection()
Starts a synchronous recomposition of the projection: everything will wait until the image is fully r...
Definition Document.cpp:824
QString documentInfo() const
documentInfo creates and XML document representing document and author information.
Definition Document.cpp:245
Node * nodeByUniqueID(const QUuid &id) const
nodeByUniqueID searches the node tree for a node with the given name and returns it.
Definition Document.cpp:167
VectorLayer * createVectorLayer(const QString &name)
createVectorLayer Creates a vector layer that can contain vector shapes.
Definition Document.cpp:705
Node * createNode(const QString &name, const QString &nodeType)
Definition Document.cpp:601
QList< qreal > horizontalGuides() const
horizontalGuides The horizontal guides.
Definition Document.cpp:830
void setVerticalGuides(const QList< qreal > &lines)
setVerticalGuides replace all existing horizontal guides with the entries in the list.
Definition Document.cpp:898
bool tryBarrierLock()
Tries to lock the image without waiting for the jobs to finish.
Definition Document.cpp:818
QString colorDepth() const
colorDepth A string describing the color depth of the image:
Definition Document.cpp:178
void setYRes(double yRes) const
setYRes set the vertical resolution of the image to yRes in pixels per inch
Definition Document.cpp:446
void setFileName(QString value)
setFileName set the full path of the document to
Definition Document.cpp:269
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:658
TransparencyMask * createTransparencyMask(const QString &name)
createTransparencyMask Creates a transparency mask, which can be used to assign transparency to regio...
Definition Document.cpp:760
bool exportImage(const QString &filename, const InfoObject &exportConfiguration)
exportImage export the image, without changing its URL to the given path.
Definition Document.cpp:507
void setAnnotation(const QString &type, const QString &description, const QByteArray &annotation)
setAnnotation Add the given annotation to the document
Definition Document.cpp:1121
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:497
Selection * selection() const
selection Create a Selection object around the global selection, if there is one.
Definition Document.cpp:341
void setResolution(int value)
setResolution set the resolution of the image; this does not scale the image
Definition Document.cpp:318
QColor backgroundColor()
backgroundColor returns the current background color of the document.
Definition Document.cpp:222
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:460
void lock()
[low-level] Lock the image without waiting for all the internal job queues are processed
Definition Document.cpp:800
QString annotationDescription(const QString &type) const
annotationDescription gets the pretty description for the current annotation
Definition Document.cpp:1102
void shearImage(double angleX, double angleY)
shearImage shear the whole image.
Definition Document.cpp:565
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:667
Node * nodeByName(const QString &name) const
nodeByName searches the node tree for a node with the given name and returns it
Definition Document.cpp:157
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:736
QByteArray annotation(const QString &type)
annotation the actual data for the annotation for this type.
Definition Document.cpp:1109
GroupLayer * createGroupLayer(const QString &name)
createGroupLayer Returns a grouplayer object.
Definition Document.cpp:649
The FileLayer class A file layer is a layer that can reference an external image and show said refere...
Definition FileLayer.h:27
The FillLayer class A fill layer is much like a filter layer in that it takes a name and filter.
Definition FillLayer.h:25
The FilterLayer class A filter layer will, when compositing, take the composited image up to the poin...
Definition FilterLayer.h:34
The FilterMask class A filter mask, unlike a filter layer, will add a non-destructive filter to the c...
Definition FilterMask.h:29
The GroupLayer class A group layer is a layer that can contain other layers.
Definition GroupLayer.h:30
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
QMap< QString, QVariant > properties() const
Return all properties this InfoObject manages.
Definition InfoObject.cpp:45
The SelectionMask class A selection mask is a mask type node that can be used to store selections.
Definition SelectionMask.h:27
The TransformMask class A transform mask is a mask type node that can be used to store transformation...
Definition TransformMask.h:23
The TransparencyMask class A transparency mask is a mask type node that can be used to show and hide ...
Definition TransparencyMask.h:24
The VectorLayer class A vector layer is a special layer that stores and shows vector shapes.
Definition VectorLayer.h:32
void stop(Ekos::AlignState mode)
Q_SCRIPTABLE Q_NOREPLY void start()
Q_SCRIPTABLE CaptureState status()
QString i18n(const char *text, const TYPE &arg...)
ParseResult setContent(QAnyStringView text, ParseOptions options)
QString toString(int indent) const const
void append(QList< T > &&value)
qsizetype size() const const
QVariant property(const char *name) const const
T qobject_cast(QObject *object)
QByteArray toLatin1() const const
QString toLower() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:53 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:53 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.