Home
last modified time | relevance | path

Searched refs:paintDevice (Results 1 – 25 of 1812) sorted by relevance

12345678910>>...73

/dports/graphics/krita/krita-4.4.8/libs/image/tests/
H A Dkis_onion_skin_compositor_test.cpp48 KisPaintDeviceSP paintDevice = p.layer->paintDevice(); in testComposite() local
49 paintDevice->createKeyframeChannel(KoID()); in testComposite()
50 KisKeyframeChannel *keyframes = paintDevice->keyframeChannel(); in testComposite()
56 paintDevice->fill(QRect(0,0,256,512), KoColor(Qt::red, paintDevice->colorSpace())); in testComposite()
61 paintDevice->fill(QRect(0,0,512,256), KoColor(Qt::green, paintDevice->colorSpace())); in testComposite()
66 paintDevice->fill(QRect(0,256,512,256), KoColor(Qt::blue, paintDevice->colorSpace())); in testComposite()
105 KisPaintDeviceSP paintDevice = p.layer->paintDevice(); in testSettings() local
106 paintDevice->createKeyframeChannel(KoID()); in testSettings()
114 paintDevice->fill(QRect(0,0,512,512), KoColor(Qt::red, paintDevice->colorSpace())); in testSettings()
119 paintDevice->fill(QRect(0,0,512,512), KoColor(Qt::green, paintDevice->colorSpace())); in testSettings()
[all …]
/dports/graphics/krita/krita-4.4.8/libs/image/
H A Dkis_group_layer.cc46 : paintDevice(0) in Private()
53 KisPaintDeviceSP paintDevice; member
70 m_d->paintDevice = new KisPaintDevice(*rhs.m_d->paintDevice.data()); in KisGroupLayer()
203 if (!m_d->paintDevice) { in resetCache()
208 m_d->paintDevice = dev; in resetCache()
213 m_d->paintDevice->clear(); in resetCache()
301 KoColor color(m_d->paintDevice->defaultPixel(), m_d->paintDevice->colorSpace()); in defaultProjectionColor()
352 return m_d->paintDevice ? m_d->paintDevice->x() : m_d->x; in x()
357 return m_d->paintDevice ? m_d->paintDevice->y() : m_d->y; in y()
363 if(m_d->paintDevice) { in setX()
[all …]
H A Dkis_raster_keyframe_channel.cpp59 Private(KisPaintDeviceWSP paintDevice, const QString filenameSuffix) in Private()
60 : paintDevice(paintDevice), in Private()
65 KisPaintDeviceWSP paintDevice; member
73 m_d(new Private(paintDevice, QString())) in KisRasterKeyframeChannel()
79 m_d(new Private(paintDevice, QString())) in KisRasterKeyframeChannel()
127 m_d->paintDevice->framesInterface()->uploadFrame(frame, sourceDevice); in importFrame()
132 return m_d->paintDevice->framesInterface()->frameBounds(frameId(keyframe)); in frameExtents()
204 m_d->paintDevice->framesInterface()-> in uploadExternalKeyframe()
207 srcRasterChannel->m_d->paintDevice); in uploadExternalKeyframe()
231 rect |= m_d->paintDevice->framesInterface()->frameBounds(frameId(key)); in affectedRect()
[all …]
H A Dkis_paint_layer.cc54 KisPaintDeviceSP paintDevice; member
73 m_d->paintDevice->setDefaultBounds(new KisDefaultBounds(image)); in KisPaintLayer()
109 m_d->contentChannel = m_d->paintDevice->keyframeChannel(); in KisPaintLayer()
120 m_d->paintDevice = paintDevice; in init()
121 m_d->paintDevice->setParentNode(this); in init()
138 return m_d->paintDevice; in original()
141 KisPaintDeviceSP KisPaintLayer::paintDevice() const in paintDevice() function in KisPaintLayer
143 return m_d->paintDevice; in paintDevice()
169 !m_d->paintDevice->defaultBounds()->externalFrameActive()) { in copyOriginalToProjection()
193 m_d->paintDevice->setDefaultBounds(new KisDefaultBounds(image)); in setImage()
[all …]
H A Dkis_paint_device_cache.h29 KisPaintDeviceCache(KisPaintDevice *paintDevice) in KisPaintDeviceCache() argument
30 : m_paintDevice(paintDevice), in KisPaintDeviceCache()
31 m_exactBoundsCache(paintDevice), in KisPaintDeviceCache()
32 m_nonDefaultPixelAreaCache(paintDevice), in KisPaintDeviceCache()
33 m_regionCache(paintDevice), in KisPaintDeviceCache()
132 ExactBoundsCache(KisPaintDevice *paintDevice) : m_paintDevice(paintDevice) {} in ExactBoundsCache()
142 NonDefaultPixelCache(KisPaintDevice *paintDevice) : m_paintDevice(paintDevice) {} in NonDefaultPixelCache()
152 RegionCache(KisPaintDevice *paintDevice) : m_paintDevice(paintDevice) {} in RegionCache()
H A Dkis_selection_based_layer.cpp48 KisPaintDeviceSP paintDevice; member
72 …m_d->paintDevice = KisPaintDeviceSP(new KisPaintDevice(this, imageSP->colorSpace(), KisDefaultBoun… in KisSelectionBasedLayer()
84 m_d->paintDevice = new KisPaintDevice(*rhs.m_d->paintDevice.data()); in KisSelectionBasedLayer()
115 m_d->paintDevice->setDefaultBounds(KisDefaultBoundsSP(new KisDefaultBounds(image))); in setImage()
130 return m_d->paintDevice; in original()
132 KisPaintDeviceSP KisSelectionBasedLayer::paintDevice() const in paintDevice() function in KisSelectionBasedLayer
216 if (!m_d->paintDevice) { in resetCache()
218 } else if (*m_d->paintDevice->colorSpace() != *imageSP->colorSpace()) { in resetCache()
219 m_d->paintDevice->clear(); in resetCache()
220 m_d->paintDevice->convertTo(imageSP->colorSpace()); in resetCache()
[all …]
/dports/editors/calligra/calligra-3.2.1/plugins/chartshape/
H A DScreenConversions.cpp50 const int dpiX = paintDevice ? paintDevice->logicalDpiX() : KoDpi::dpiX(); in ptToPxX()
56 const int dpiY = paintDevice ? paintDevice->logicalDpiY() : KoDpi::dpiY(); in ptToPxY()
87 return QSizeF(ptToPxX(size.width(), paintDevice), in scaleFromPtToPx()
93 QPaintDevice* paintDevice = painter.device(); in scaleFromPtToPx() local
94 if (dynamic_cast<QWidget*>(paintDevice) != 0) { in scaleFromPtToPx()
95 paintDevice = 0; in scaleFromPtToPx()
98 return scaleFromPtToPx(size, paintDevice); in scaleFromPtToPx()
113 return QPointF(ptToPxX(point.x(), paintDevice), in scaleFromPtToPx()
119 QPaintDevice* paintDevice = painter.device(); in scaleFromPtToPx() local
120 if (dynamic_cast<QWidget*>(paintDevice) != 0) { in scaleFromPtToPx()
[all …]
/dports/graphics/krita/krita-4.4.8/libs/ui/widgets/
H A Dkis_scratch_pad.cpp485 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in cutoutOverlay() local
510 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in paintCustomImage() local
539 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in loadScratchpadImage() local
563 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in paintPresetImage() local
593 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in fillDefault() local
597 paintDevice->clear(); in fillDefault()
604 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in fillTransparent() local
612 paintDevice->clear(); in fillTransparent()
625 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in fillGradient() local
651 KisPaintDeviceSP paintDevice = m_paintLayer->paintDevice(); in fillBackground() local
[all …]
/dports/deskutils/nextcloudclient/desktop-3.4.1/test/
H A Dtesttheme.cpp35 FakePaintDevice paintDevice; in testHidpiFileName_darkBackground_returnPathToWhiteIcon() local
39 … const auto iconPath = OCC::Theme::hidpiFileName(iconName + ".png", backgroundColor, &paintDevice); in testHidpiFileName_darkBackground_returnPathToWhiteIcon()
46 FakePaintDevice paintDevice; in testHidpiFileName_lightBackground_returnPathToBlackIcon() local
57 FakePaintDevice paintDevice; in testHidpiFileName_hidpiDevice_returnHidpiIconPath() local
58 paintDevice.setHidpi(true); in testHidpiFileName_hidpiDevice_returnHidpiIconPath()
96 FakePaintDevice paintDevice; in testIsHidpi_hidpi_returnTrue() local
97 paintDevice.setHidpi(true); in testIsHidpi_hidpi_returnTrue()
99 QCOMPARE(OCC::Theme::isHidpi(&paintDevice), true); in testIsHidpi_hidpi_returnTrue()
104 FakePaintDevice paintDevice; in testIsHidpi_lowdpi_returnFalse() local
105 paintDevice.setHidpi(false); in testIsHidpi_lowdpi_returnFalse()
[all …]
/dports/graphics/krita/krita-4.4.8/plugins/impex/libkra/tests/
H A Dutil.h54 KisSelectionSP createPixelSelection(KisPaintDeviceSP paintDevice) in createPixelSelection() argument
56 KisSelectionSP pixelSelection = new KisSelection(new KisSelectionDefaultBounds(paintDevice)); in createPixelSelection()
68 KisSelectionSP selection = new KisSelection(new KisSelectionDefaultBounds(paintDevice)); in createVectorSelection()
109 KisFillPainter gc(paintLayer1->paintDevice()); in createCompleteDocument()
117 KisFillPainter gc(paintLayer2->paintDevice()); in createCompleteDocument()
127 KisSelectionSP pixelSelection = createPixelSelection(paintLayer1->paintDevice()); in createCompleteDocument()
167 filterMask1->setSelection(createPixelSelection(paintLayer1->paintDevice())); in createCompleteDocument()
180 transparencyMask1->setSelection(createPixelSelection(paintLayer1->paintDevice())); in createCompleteDocument()
184 transparencyMask2->setSelection(createPixelSelection(paintLayer1->paintDevice())); in createCompleteDocument()
189 selectionMask1->setSelection(createPixelSelection(paintLayer1->paintDevice())); in createCompleteDocument()
[all …]
H A Dkis_kra_saver_test.cpp279 layer1->paintDevice()->setDefaultPixel(KoColor(Qt::red, cs)); in testRoundTripAnimation()
291 layer1->paintDevice()->moveTo(25, 15); in testRoundTripAnimation()
298 layer1->paintDevice()->moveTo(100, 50); in testRoundTripAnimation()
299 layer1->paintDevice()->setDefaultPixel(KoColor(Qt::blue, cs)); in testRoundTripAnimation()
313 cs = layer2->paintDevice()->colorSpace(); in testRoundTripAnimation()
324 QCOMPARE(layer2->paintDevice()->x(), 0); in testRoundTripAnimation()
325 QCOMPARE(layer2->paintDevice()->y(), 0); in testRoundTripAnimation()
332 QCOMPARE(layer2->paintDevice()->x(), 25); in testRoundTripAnimation()
333 QCOMPARE(layer2->paintDevice()->y(), 15); in testRoundTripAnimation()
340 QCOMPARE(layer2->paintDevice()->x(), 100); in testRoundTripAnimation()
[all …]
/dports/graphics/krita/krita-4.4.8/libs/ui/tests/
H A Dutil.h55 KisSelectionSP createPixelSelection(KisPaintDeviceSP paintDevice) in createPixelSelection() argument
57 KisSelectionSP pixelSelection = new KisSelection(new KisSelectionDefaultBounds(paintDevice)); in createPixelSelection()
69 KisSelectionSP vectorSelection = new KisSelection(new KisSelectionDefaultBounds(paintDevice)); in createVectorSelection()
109 KisFillPainter gc(paintLayer1->paintDevice());
117 KisFillPainter gc(paintLayer2->paintDevice());
127 KisSelectionSP pixelSelection = createPixelSelection(paintLayer1->paintDevice());
167 filterMask1->setSelection(createPixelSelection(paintLayer1->paintDevice()));
180 transparencyMask1->setSelection(createPixelSelection(paintLayer1->paintDevice()));
184 transparencyMask2->setSelection(createPixelSelection(paintLayer1->paintDevice()));
190 selectionMask1->setSelection(createPixelSelection(paintLayer1->paintDevice()));
[all …]
/dports/graphics/krita/krita-4.4.8/plugins/generators/screentone/tests/
H A DKisScreentoneGeneratorTest.cpp48 KisPaintDeviceSP paintDevice = new KisPaintDevice(KoColorSpaceRegistry::instance()->rgb8()); in testGenerate01() local
49 KisProcessingInformation processingInformation(paintDevice, QPoint(0, 0), KisSelectionSP()); in testGenerate01()
59 …QImage deviceImage = paintDevice->convertToQImage(0, 0, 0, testImageSize.width(), testImageSize.he… in testGenerate01()
79 KisPaintDeviceSP paintDevice = new KisPaintDevice(KoColorSpaceRegistry::instance()->rgb8()); in testGenerate02() local
80 KisProcessingInformation processingInformation(paintDevice, QPoint(0, 0), KisSelectionSP()); in testGenerate02()
96 v.setValue(KoColor(QColor(255, 0, 0), paintDevice->colorSpace())); in testGenerate02()
105 …QImage deviceImage = paintDevice->convertToQImage(0, 0, 0, testImageSize.width(), testImageSize.he… in testGenerate02()
/dports/databases/qt5-sqldrivers-sqlite2/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/databases/qt5-sqldrivers-sqlite3/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/databases/qt5-sqldrivers-tds/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/devel/qt5-qmake/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/textproc/qt5-xml/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/databases/qt5-sql/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/databases/qt5-sqldrivers-odbc/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/databases/qt5-sqldrivers-mysql/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/databases/qt5-sqldrivers-pgsql/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/databases/qt5-sqldrivers-ibase/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/net/qt5-network/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()
/dports/x11-toolkits/qt5-widgets/kde-qtbase-5.15.2p263/src/plugins/platforms/winrt/
H A Dqwinrtbackingstore.cpp60 QImage paintDevice; member in QWinRTBackingStorePrivate
104 QPaintDevice *QWinRTBackingStore::paintDevice() in paintDevice() function in QWinRTBackingStore
107 return &d->paintDevice; in paintDevice()
120 const QRect bounds = region.boundingRect() & d->paintDevice.rect(); in flush()
131 GL_RGBA, GL_UNSIGNED_BYTE, d->paintDevice.constScanLine(bounds.y())); in flush()
165 d->paintDevice = QImage(d->size, QImage::Format_RGBA8888_Premultiplied); in resize()
179 return d->paintDevice; in toImage()

12345678910>>...73