MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / updateThumbnail

Method updateThumbnail

ImagePlay/src/IPProcessStep.cpp:356–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void IPProcessStep::updateThumbnail()
357{
358 if(process()->isResultReady())
359 {
360 IPLData* data = process()->getResultData(0);
361 IPLImage* image = data->toImage();
362 if(image)
363 {
364 QImage tmpImage = QImage(image->rgb32(), image->width(), image->height(), QImage::Format_RGB32);
365 _thumbnail = QPixmap::fromImage(tmpImage.scaled(138,138, Qt::KeepAspectRatioByExpanding, Qt::FastTransformation));
366 }
367 }
368}
369
370void IPProcessStep::setProgress(int progress)
371{

Callers 1

executeMethod · 0.80

Calls 6

processFunction · 0.85
toImageMethod · 0.80
widthMethod · 0.80
heightMethod · 0.80
getResultDataMethod · 0.45
rgb32Method · 0.45

Tested by

no test coverage detected