Changeset View
Changeset View
Standalone View
Standalone View
krita/image/kis_mask.cc
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Line(s) | |||||
337 | 337 | | |||
338 | QImage KisMask::createThumbnail(qint32 w, qint32 h) | 338 | QImage KisMask::createThumbnail(qint32 w, qint32 h) | ||
339 | { | 339 | { | ||
340 | KisPaintDeviceSP originalDevice = | 340 | KisPaintDeviceSP originalDevice = | ||
341 | selection() ? selection()->projection() : 0; | 341 | selection() ? selection()->projection() : 0; | ||
342 | 342 | | |||
343 | return originalDevice ? | 343 | return originalDevice ? | ||
344 | originalDevice->createThumbnail(w, h, | 344 | originalDevice->createThumbnail(w, h, | ||
345 | KoColorConversionTransformation::InternalRenderingIntent, | 345 | KoColorConversionTransformation::internalRenderingIntent(), | ||
346 | KoColorConversionTransformation::InternalConversionFlags) : QImage(); | 346 | KoColorConversionTransformation::internalConversionFlags()) : QImage(); | ||
347 | } | 347 | } | ||
348 | 348 | | |||
349 | void KisMask::testingInitSelection(const QRect &rect) | 349 | void KisMask::testingInitSelection(const QRect &rect) | ||
350 | { | 350 | { | ||
351 | m_d->selection = new KisSelection(); | 351 | m_d->selection = new KisSelection(); | ||
352 | m_d->selection->pixelSelection()->select(rect, OPACITY_OPAQUE_U8); | 352 | m_d->selection->pixelSelection()->select(rect, OPACITY_OPAQUE_U8); | ||
353 | m_d->selection->updateProjection(rect); | 353 | m_d->selection->updateProjection(rect); | ||
354 | m_d->selection->setParentNode(this); | 354 | m_d->selection->setParentNode(this); | ||
355 | } | 355 | } | ||
356 | 356 | |