|
Krita Source Code Documentation
|
#include "kis_xcf_import.h"#include <ctype.h>#include <QApplication>#include <QFile>#include <qendian.h>#include <kpluginfactory.h>#include <KoColorSpace.h>#include <KoColorSpaceRegistry.h>#include <KoColorSpaceTraits.h>#include <KoCompositeOpRegistry.h>#include <kis_debug.h>#include <KisDocument.h>#include <kis_group_layer.h>#include <kis_image.h>#include <kis_paint_device.h>#include <kis_transaction.h>#include <kis_paint_layer.h>#include <kis_transparency_mask.h>#include "kis_iterator_ng.h"#include "kis_types.h"#include <KoColorModelStandardIds.h>#include "xcftools.h"#include "pixels.h"#include "kis_xcf_import.moc"Go to the source code of this file.
Classes | |
| struct | Layer |
Macros | |
| #define | GET_ALPHA(x) (x >> ALPHA_SHIFT) |
| #define | GET_BLUE(x) (x >> BLUE_SHIFT) |
| #define | GET_GREEN(x) (x >> GREEN_SHIFT) |
| #define | GET_RED(x) (x >> RED_SHIFT) |
Functions | |
| void | addLayers (const QVector< Layer > &layers, KisImageSP image, int depth) |
| KisGroupLayerSP | findGroup (const QVector< Layer > &layers, const Layer &layer, int i) |
| QString | layerModeG2K (GimpLayerModeEffects mode) |
| #define GET_ALPHA | ( | x | ) | (x >> ALPHA_SHIFT) |
Definition at line 40 of file kis_xcf_import.cpp.
| #define GET_BLUE | ( | x | ) | (x >> BLUE_SHIFT) |
Definition at line 39 of file kis_xcf_import.cpp.
| #define GET_GREEN | ( | x | ) | (x >> GREEN_SHIFT) |
Definition at line 38 of file kis_xcf_import.cpp.
| #define GET_RED | ( | x | ) | (x >> RED_SHIFT) |
Definition at line 37 of file kis_xcf_import.cpp.
| void addLayers | ( | const QVector< Layer > & | layers, |
| KisImageSP | image, | ||
| int | depth ) |
Definition at line 118 of file kis_xcf_import.cpp.
References KisNodeFacade::addNode(), Layer::depth, findGroup(), Layer::layer, Layer::mask, and KisImage::rootLayer().
| KisGroupLayerSP findGroup | ( | const QVector< Layer > & | layers, |
| const Layer & | layer, | ||
| int | i ) |
Definition at line 107 of file kis_xcf_import.cpp.
References Layer::depth.
| QString layerModeG2K | ( | GimpLayerModeEffects | mode | ) |
Definition at line 43 of file kis_xcf_import.cpp.
References COMPOSITE_ADD, COMPOSITE_BURN, COMPOSITE_COLOR_HSL, COMPOSITE_COPY, COMPOSITE_DARKEN, COMPOSITE_DIFF, COMPOSITE_DISSOLVE, COMPOSITE_DIVIDE, COMPOSITE_DODGE, COMPOSITE_ERASE, COMPOSITE_GRAIN_EXTRACT, COMPOSITE_GRAIN_MERGE, COMPOSITE_HARD_LIGHT, COMPOSITE_HUE_HSL, COMPOSITE_LIGHTEN, COMPOSITE_MULT, COMPOSITE_OVER, COMPOSITE_OVERLAY, COMPOSITE_SATURATION_HSV, COMPOSITE_SCREEN, COMPOSITE_SUBTRACT, COMPOSITE_VALUE, dbgFile, GIMP_ADDITION_MODE, GIMP_ANTI_ERASE_MODE, GIMP_BEHIND_MODE, GIMP_BURN_MODE, GIMP_COLOR_ERASE_MODE, GIMP_COLOR_MODE, GIMP_DARKEN_ONLY_MODE, GIMP_DIFFERENCE_MODE, GIMP_DISSOLVE_MODE, GIMP_DIVIDE_MODE, GIMP_DODGE_MODE, GIMP_ERASE_MODE, GIMP_GRAIN_EXTRACT_MODE, GIMP_GRAIN_MERGE_MODE, GIMP_HARDLIGHT_MODE, GIMP_HUE_MODE, GIMP_LIGHTEN_ONLY_MODE, GIMP_MULTIPLY_MODE, GIMP_NORMAL_MODE, GIMP_NORMAL_NOPARTIAL_MODE, GIMP_OVERLAY_MODE, GIMP_REPLACE_MODE, GIMP_SATURATION_MODE, GIMP_SCREEN_MODE, GIMP_SOFTLIGHT_MODE, GIMP_SUBTRACT_MODE, and GIMP_VALUE_MODE.