|
Krita Source Code Documentation
|
#include "kis_tga_import.h"#include <QCheckBox>#include <QBuffer>#include <QSlider>#include <QApplication>#include <kpluginfactory.h>#include <KoColorSpace.h>#include <KoColorSpaceRegistry.h>#include <kis_transaction.h>#include <kis_paint_device.h>#include <KisDocument.h>#include <kis_image.h>#include <kis_paint_layer.h>#include <kis_node.h>#include <kis_group_layer.h>#include <tga.h>#include "kis_tga_import.moc"Go to the source code of this file.
Functions | |
| static bool | isSupported (const TgaHeader &head) |
| static bool | loadTGA (QDataStream &s, const TgaHeader &tga, QImage &img) |
| static QDataStream & | operator>> (QDataStream &s, TgaHeader &head) |
|
static |
Definition at line 63 of file kis_tga_import.cpp.
References TgaHeader::colormap_length, TgaHeader::colormap_size, TgaHeader::colormap_type, TgaHeader::height, TgaHeader::image_type, TgaHeader::pixel_size, TGA_TYPE_GREY, TGA_TYPE_INDEXED, TGA_TYPE_RGB, TGA_TYPE_RLE_GREY, TGA_TYPE_RLE_INDEXED, TGA_TYPE_RLE_RGB, and TgaHeader::width.
|
static |
Theoretically, we should check alpha presence via the bits in flags, but there are a lot of files in the wild that have this flag unset. It contradicts TGA specification, but we cannot do anything about it.
Definition at line 102 of file kis_tga_import.cpp.
References Color555::b, TgaHeader::colormap_length, dbgFile, TgaHeader::flags, Color555::g, TgaHeaderInfo::grey, TgaHeader::height, TgaHeaderInfo::pal, palette, TgaHeader::pixel_size, ppVar, Color555::r, TgaHeaderInfo::rle, TGA_ORIGIN_UPPER, and TgaHeader::width.
|
static |
Definition at line 40 of file kis_tga_import.cpp.
References TgaHeader::colormap_index, TgaHeader::colormap_length, TgaHeader::colormap_size, TgaHeader::colormap_type, TgaHeader::flags, TgaHeader::height, TgaHeader::id_length, TgaHeader::image_type, TgaHeader::pixel_size, TgaHeader::width, TgaHeader::x_origin, and TgaHeader::y_origin.