Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/formats/tga/kis_tga_export.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 60 | if (from != "application/x-krita") | |||
---|---|---|---|---|---|
61 | return KisImportExportFilter::NotImplemented; | 61 | return KisImportExportFilter::NotImplemented; | ||
62 | 62 | | |||
63 | qApp->processEvents(); // For vector layers to be updated | 63 | qApp->processEvents(); // For vector layers to be updated | ||
64 | input->image()->waitForDone(); | 64 | input->image()->waitForDone(); | ||
65 | 65 | | |||
66 | QRect rc = input->image()->bounds(); | 66 | QRect rc = input->image()->bounds(); | ||
67 | input->image()->refreshGraph(); | 67 | input->image()->refreshGraph(); | ||
68 | input->image()->lock(); | 68 | input->image()->lock(); | ||
69 | QImage image = input->image()->projection()->convertToQImage(0, 0, 0, rc.width(), rc.height(), KoColorConversionTransformation::InternalRenderingIntent, KoColorConversionTransformation::InternalConversionFlags); | 69 | QImage image = input->image()->projection()->convertToQImage(0, 0, 0, rc.width(), rc.height(), KoColorConversionTransformation::internalRenderingIntent(), KoColorConversionTransformation::internalConversionFlags()); | ||
70 | input->image()->unlock(); | 70 | input->image()->unlock(); | ||
71 | 71 | | |||
72 | QFile f(filename); | 72 | QFile f(filename); | ||
73 | f.open(QIODevice::WriteOnly); | 73 | f.open(QIODevice::WriteOnly); | ||
74 | QDataStream s(&f); | 74 | QDataStream s(&f); | ||
75 | s.setByteOrder(QDataStream::LittleEndian); | 75 | s.setByteOrder(QDataStream::LittleEndian); | ||
76 | 76 | | |||
77 | const QImage& img = image; | 77 | const QImage& img = image; | ||
Show All 26 Lines |