|
Krita Source Code Documentation
|
Go to the source code of this file.
Macros | |
| #define | KIS_DUMP_DEVICE_1(device, rc, suffix) |
| #define | KIS_DUMP_DEVICE_2(device, rc, suffix, prefix) |
Functions | |
| void KRITAIMAGE_EXPORT | kis_debug_save_device_incremental (KisPaintDeviceSP device, int i, const QRect &rc, const QString &suffix, const QString &prefix) |
| #define KIS_DUMP_DEVICE_1 | ( | device, | |
| rc, | |||
| suffix ) |
Saves the paint device incrementally. Put this macro into a function that is called several times and you'll have as many separate dump files as the number of times the function was called. That is very convenient for debugging canvas updates: adding this macro will let you track the whole history of updates.
The files are saved with pattern: <counter>_<suffix>.png
Definition at line 31 of file kis_paint_device_debug_utils.h.
| #define KIS_DUMP_DEVICE_2 | ( | device, | |
| rc, | |||
| suffix, | |||
| prefix ) |
Saves the paint device incrementally. Put this macro into a function that is called several times and you'll have as many separate dump files as the number of times the function was called. That is very convenient for debugging canvas updates: adding this macro will let you track the whole history of updates.
The prefix parameter makes it easy to sort out dumps from different functions.
The files are saved with pattern: <prefix>_<counter>_<suffix>.png
Definition at line 49 of file kis_paint_device_debug_utils.h.
| void KRITAIMAGE_EXPORT kis_debug_save_device_incremental | ( | KisPaintDeviceSP | device, |
| int | i, | ||
| const QRect & | rc, | ||
| const QString & | suffix, | ||
| const QString & | prefix ) |
Definition at line 15 of file kis_paint_device_debug_utils.cpp.
References KisPaintDevice::convertToQImage(), and KisPaintDevice::exactBounds().