krita
KisImage Class Reference
List of all members.Detailed Description
Definition at line 60 of file kis_image.h.
Public Types | |
typedef enum KisImage::enumPaintFlags | PaintFlags |
enum | enumPaintFlags { PAINT_IMAGE_ONLY = 0, PAINT_BACKGROUND = 1, PAINT_SELECTION = 2, PAINT_MASKINACTIVELAYERS = 4, PAINT_EMBEDDED_RECT = 8 } |
Public Slots | |
void | slotSelectionChanged () |
void | slotSelectionChanged (const QRect &r) |
Signals | |
void | sigActiveSelectionChanged (KisImageSP image) |
void | sigSelectionChanged (KisImageSP image) |
void | sigLayerActivated (KisLayerSP layer) |
void | sigLayerAdded (KisLayerSP layer) |
void | sigLayerRemoved (KisLayerSP layer, KisGroupLayerSP wasParent, KisLayerSP wasAboveThis) |
void | sigLayerMoved (KisLayerSP layer, KisGroupLayerSP previousParent, KisLayerSP wasAboveThis) |
void | sigLayerPropertiesChanged (KisLayerSP layer) |
void | sigLayersChanged (KisGroupLayerSP rootLayer) |
void | sigImageUpdated (QRect rc) |
void | sigLayerUpdated (KisLayerSP layer, QRect rc) |
void | sigImageModified () |
void | sigSizeChanged (Q_INT32 w, Q_INT32 h) |
void | sigProfileChanged (KisProfile *profile) |
void | sigColorSpaceChanged (KisColorSpace *cs) |
Public Member Functions | |
KisImage (KisUndoAdapter *adapter, Q_INT32 width, Q_INT32 height, KisColorSpace *colorSpace, const QString &name) | |
KisImage (const KisImage &rhs) | |
virtual | ~KisImage () |
virtual DCOPObject * | dcopObject () |
virtual void | renderToPainter (Q_INT32 x1, Q_INT32 y1, Q_INT32 x2, Q_INT32 y2, QPainter &painter, KisProfile *profile, PaintFlags paintFlags, float exposure=0.0f) |
virtual QImage | convertToQImage (Q_INT32 x1, Q_INT32 y1, Q_INT32 x2, Q_INT32 y2, KisProfile *profile, float exposure=0.0f) |
virtual QImage | convertToQImage (const QRect &r, const QSize &fullImageSize, KisProfile *profile, PaintFlags paintFlags, float exposure=0.0f) |
KisBackgroundSP | background () const |
void | lock () |
void | unlock () |
bool | locked () const |
KisColor | backgroundColor () const |
void | setBackgroundColor (const KisColor &color) |
QString | name () const |
void | setName (const QString &name) |
QString | description () const |
void | setDescription (const QString &description) |
QString | nextLayerName () const |
void | rollBackLayerName () |
void | resize (Q_INT32 w, Q_INT32 h, Q_INT32 x=0, Q_INT32 y=0, bool cropLayers=false) |
void | resize (const QRect &rc, bool cropLayers=false) |
void | scale (double sx, double sy, KisProgressDisplayInterface *m_progress, KisFilterStrategy *filterStrategy) |
void | rotate (double angle, KisProgressDisplayInterface *m_progress) |
void | shear (double angleX, double angleY, KisProgressDisplayInterface *m_progress) |
void | convertTo (KisColorSpace *dstColorSpace, Q_INT32 renderingIntent=INTENT_PERCEPTUAL) |
KisProfile * | getProfile () const |
void | setProfile (const KisProfile *profile) |
void | setUndoAdapter (KisUndoAdapter *undoAdapter) |
KisUndoAdapter * | undoAdapter () const |
bool | undo () const |
void | setModified () |
KisColorSpace * | colorSpace () const |
double | xRes () |
double | yRes () |
void | setResolution (double xres, double yres) |
Q_INT32 | width () const |
Q_INT32 | height () const |
bool | empty () const |
KisPaintDeviceSP | mergedImage () |
KisColor | mergedPixel (Q_INT32 x, Q_INT32 y) |
KisLayerSP | newLayer (const QString &name, Q_UINT8 opacity, const KisCompositeOp &compositeOp=KisCompositeOp(), KisColorSpace *colorstrategy=0) |
KisPaintDeviceSP | activeDevice () |
void | setLayerProperties (KisLayerSP layer, Q_UINT8 opacity, const KisCompositeOp &compositeOp, const QString &name) |
KisGroupLayerSP | rootLayer () const |
KisLayerSP | activeLayer () const |
KisPaintDeviceSP | projection () |
KisLayerSP | activate (KisLayerSP layer) |
KisLayerSP | findLayer (const QString &name) const |
KisLayerSP | findLayer (int id) const |
bool | moveLayer (KisLayerSP layer, KisGroupLayerSP parent, KisLayerSP aboveThis) |
bool | addLayer (KisLayerSP layer, KisGroupLayerSP parent) |
bool | addLayer (KisLayerSP layer, KisGroupLayerSP parent, KisLayerSP aboveThis) |
bool | removeLayer (KisLayerSP layer) |
bool | raiseLayer (KisLayerSP layer) |
bool | lowerLayer (KisLayerSP layer) |
bool | toTop (KisLayerSP layer) |
bool | toBottom (KisLayerSP layer) |
Q_INT32 | nlayers () const |
Q_INT32 | nHiddenLayers () const |
KCommand * | raiseLayerCommand (KisLayerSP layer) |
KCommand * | lowerLayerCommand (KisLayerSP layer) |
KCommand * | topLayerCommand (KisLayerSP layer) |
KCommand * | bottomLayerCommand (KisLayerSP layer) |
void | flatten () |
void | mergeLayer (KisLayerSP l) |
QRect | bounds () const |
void | notifyLayersChanged () |
void | notifyPropertyChanged (KisLayerSP layer) |
void | notifyImageLoaded () |
void | notifyLayerUpdated (KisLayerSP layer, QRect rc) |
void | setColorSpace (KisColorSpace *colorSpace) |
void | setRootLayer (KisGroupLayerSP rootLayer) |
void | addAnnotation (KisAnnotationSP annotation) |
KisAnnotationSP | annotation (QString type) |
void | removeAnnotation (QString type) |
vKisAnnotationSP_it | beginAnnotations () |
vKisAnnotationSP_it | endAnnotations () |
Member Function Documentation
|
Get the active painting device. Returns 0 if the active layer does not have a paint device.
Definition at line 968 of file kis_image.cc. |
|
Add an annotation for this image. This can be anything: Gamma, EXIF, etc. Note that the "icc" annotation is reserved for the colour strategies. If the annotation already exists, overwrite it with this one. Definition at line 1561 of file kis_image.cc. |
|
Add already existing layer to image.
Definition at line 1079 of file kis_image.cc. |
|
Add an already existing layer to the image. The layer is put on top of the layers in the specified layergroup
Definition at line 1074 of file kis_image.cc. |
|
get the annotation with the given type, can return 0
Definition at line 1575 of file kis_image.cc. |
|
Start of an iteration over the annotations of this image (including the ICC Profile).
Definition at line 1599 of file kis_image.cc. |
|
Convert the image and all its layers to the dstColorSpace.
Definition at line 882 of file kis_image.cc. |
|
Render the projection onto a QImage. In contrast with the above method, the selection is not rendered. Definition at line 1356 of file kis_image.cc. |
|
end of an iteration over the annotations of this image
Definition at line 1615 of file kis_image.cc. |
|
Merge all visible layers and discard hidden ones. The resulting layer will be activated. Definition at line 1255 of file kis_image.cc. |
|
Lock the image to make sure no recompositing-causing signals get emitted while you're messing with the layers. Don't forget to unlock again. Definition at line 658 of file kis_image.cc. |
|
Returns true if the image is locked.
Definition at line 653 of file kis_image.cc. |
|
Move layer down one slot.
Definition at line 1182 of file kis_image.cc. |
|
returns a paintdevice that contains the merged layers of this image, within the bounds of this image (with the colorspace and profile of this image)
Definition at line 1470 of file kis_image.cc. |
|
Merge the specified layer with the layer below this layer, remove the specified layer.
Definition at line 1293 of file kis_image.cc. |
|
Move layer to specified position.
Definition at line 1205 of file kis_image.cc. |
|
Creates a new paint layer with the specified properties, adds it to the image, and returns it.
Definition at line 993 of file kis_image.cc. |
|
use if the layers have changed _completely_ (eg. when flattening)
Definition at line 1480 of file kis_image.cc. |
|
Return the projection; that is, the complete, composited representation of this image.
Definition at line 1046 of file kis_image.cc. |
|
Move layer up one slot.
Definition at line 1175 of file kis_image.cc. |
|
delete the annotation, if the image contains it
Definition at line 1587 of file kis_image.cc. |
|
Remove layer.
Definition at line 1114 of file kis_image.cc. |
|
Paint the specified rect onto the painter, adjusting the colors using the given profile. The exposure setting is used if the image has a high dynamic range. Definition at line 1320 of file kis_image.cc. |
|
Resize the image to the specified width and height. The resize method handles the creating on an undo step itself.
Definition at line 741 of file kis_image.cc. |
|
Resize the image to the specified width and height. The resize method handles the creating on an undo step itself.
Definition at line 706 of file kis_image.cc. |
|
Tell the image it's modified; this emits the sigImageModified signal. This happens when the image needs to be saved Definition at line 1315 of file kis_image.cc. |
|
Set the profile of the image to the new profile and do the same for all layers that have the same colorspace and profile as the image. It doesn't do any pixel conversion. This is essential if you have loaded an image that didn't have an embedded profile to which you want to attach the right profile. Definition at line 921 of file kis_image.cc. |
|
Replace the current undo adapter with the specified undo adapter. The current undo adapter will _not_ be deleted. Definition at line 1500 of file kis_image.cc. |
|
Emitted whenever the image has been modified, so that it doesn't match with the version saved on disk.
|
|
Emitted whenever an action has caused the image to be recomposited. This happens after calls to recomposite().
|
|
Emitted after a different layer is made active.
|
|
Emitted after a layer is added: you can find out where by asking it for its parent(), et al.
|
|
Emitted after a layer is moved to a different position under its parent layer, or its parent changes.
|
|
Emitted after a layer's properties (visible, locked, opacity, composite op, name, ...) change.
|
|
Emitted after a layer is removed.
It's no longer in the image, but still exists, so
|
|
Emitted when the list of layers has changed completely. This means e.g. when the image is flattened, but not when it is rotated, as the layers only change internally then. |
|
Emitted whenever a layer is modified.
|
|
Move layer to bottom slot.
Definition at line 1198 of file kis_image.cc. |
|
Move layer to top slot.
Definition at line 1191 of file kis_image.cc. |
|
Returns true if this image wants undo information, false otherwise.
Definition at line 1511 of file kis_image.cc. |
|
Returns the current undo adapter. You can add new commands to the undo stack using the adapter Definition at line 1506 of file kis_image.cc. |
|
Unlock the image to make sure the rest of Krita learns about changes in the image again. If the rootLayer is dirty on unlocking, an imgUpdated signal is sent out immediately. Definition at line 668 of file kis_image.cc. |
The documentation for this class was generated from the following files: