Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_paint_device.h
Context not available. | |||||
63 | * when pixels are accessed by an iterator. | 63 | * when pixels are accessed by an iterator. | ||
---|---|---|---|---|---|
64 | */ | 64 | */ | ||
65 | class KRITAIMAGE_EXPORT KisPaintDevice | 65 | class KRITAIMAGE_EXPORT KisPaintDevice | ||
66 | : public QObject | 66 | : public QObject | ||
67 | , public KisShared | 67 | , public KisShared | ||
68 | { | 68 | { | ||
69 | 69 | | |||
70 | Q_OBJECT | 70 | Q_OBJECT | ||
Context not available. | |||||
513 | * like sRGB). | 513 | * like sRGB). | ||
514 | */ | 514 | */ | ||
515 | QImage convertToQImage(const KoColorProfile * dstProfile, | 515 | QImage convertToQImage(const KoColorProfile * dstProfile, | ||
516 | KoColorConversionTransformation::Intent renderingIntent = KoColorConversionTransformation::internalRenderingIntent(), | 516 | KoColorConversionTransformation::Intent renderingIntent = KoColorConversionTransformation::internalRenderingIntent(), | ||
517 | KoColorConversionTransformation::ConversionFlags conversionFlags = KoColorConversionTransformation::internalConversionFlags()) const; | 517 | KoColorConversionTransformation::ConversionFlags conversionFlags = KoColorConversionTransformation::internalConversionFlags()) const; | ||
518 | 518 | | |||
519 | /** | 519 | /** | ||
520 | * Creates a paint device thumbnail of the paint device, retaining | 520 | * Creates a paint device thumbnail of the paint device, retaining | ||
Context not available. | |||||
526 | * @param rect: only this rect will be used for the thumbnail | 526 | * @param rect: only this rect will be used for the thumbnail | ||
527 | * | 527 | * | ||
528 | */ | 528 | */ | ||
529 | KisPaintDeviceSP createThumbnailDevice(qint32 w, qint32 h, QRect rect = QRect()) const; | 529 | KisPaintDeviceSP createThumbnailDevice(qint32 w, qint32 h, QRect rect = QRect(), QRect outputRect = QRect()) const; | ||
530 | KisPaintDeviceSP createThumbnailDeviceOversampled(qint32 w, qint32 h, qreal oversample, QRect rect = QRect(), QRect outputRect = QRect()) const; | ||||
530 | 531 | | |||
531 | /** | 532 | /** | ||
532 | * Creates a thumbnail of the paint device, retaining the aspect ratio. | 533 | * Creates a thumbnail of the paint device, retaining the aspect ratio. | ||
Context not available. | |||||
536 | * @param maxw: maximum width | 537 | * @param maxw: maximum width | ||
537 | * @param maxh: maximum height | 538 | * @param maxh: maximum height | ||
538 | * @param rect: only this rect will be used for the thumbnail | 539 | * @param rect: only this rect will be used for the thumbnail | ||
540 | * @param oversample: ratio used for antialiasing | ||||
539 | */ | 541 | */ | ||
540 | QImage createThumbnail(qint32 maxw, qint32 maxh, QRect rect, | 542 | QImage createThumbnail(qint32 maxw, qint32 maxh, QRect rect, qreal oversample = 1, | ||
541 | KoColorConversionTransformation::Intent renderingIntent = KoColorConversionTransformation::internalRenderingIntent(), | 543 | KoColorConversionTransformation::Intent renderingIntent = KoColorConversionTransformation::internalRenderingIntent(), | ||
542 | KoColorConversionTransformation::ConversionFlags conversionFlags = KoColorConversionTransformation::internalConversionFlags()); | 544 | KoColorConversionTransformation::ConversionFlags conversionFlags = KoColorConversionTransformation::internalConversionFlags()); | ||
543 | 545 | | |||
544 | /** | 546 | /** | ||
545 | * Cached version of createThumbnail(qint32 maxw, qint32 maxh, const KisSelection *selection, QRect rect) | 547 | * Cached version of createThumbnail(qint32 maxw, qint32 maxh, const KisSelection *selection, QRect rect) | ||
546 | */ | 548 | */ | ||
547 | QImage createThumbnail(qint32 maxw, qint32 maxh, | 549 | QImage createThumbnail(qint32 maxw, qint32 maxh, qreal oversample = 1, | ||
548 | KoColorConversionTransformation::Intent renderingIntent = KoColorConversionTransformation::internalRenderingIntent(), | 550 | KoColorConversionTransformation::Intent renderingIntent = KoColorConversionTransformation::internalRenderingIntent(), | ||
549 | KoColorConversionTransformation::ConversionFlags conversionFlags = KoColorConversionTransformation::internalConversionFlags()); | 551 | KoColorConversionTransformation::ConversionFlags conversionFlags = KoColorConversionTransformation::internalConversionFlags()); | ||
550 | 552 | | |||
551 | /** | 553 | /** | ||
552 | * Fill c and opacity with the values found at x and y. | 554 | * Fill c and opacity with the values found at x and y. | ||
Context not available. | |||||
796 | QRect calculateExactBounds(bool nonDefaultOnly) const; | 798 | QRect calculateExactBounds(bool nonDefaultOnly) const; | ||
797 | 799 | | |||
798 | public: | 800 | public: | ||
799 | struct MemoryReleaseObject : public QObject | 801 | struct MemoryReleaseObject : public QObject { | ||
800 | { | | |||
801 | ~MemoryReleaseObject(); | 802 | ~MemoryReleaseObject(); | ||
802 | }; | 803 | }; | ||
803 | 804 | | |||
Context not available. |