ucomesdag
21st August 2010, 17:21
Hi all,
I try to apply blur to an image but nothing seems to happen and can't wrap my head arround whatmight be wrong here:
QPixmap buffer(image.size());
QGraphicsPixmapItem item(buffer);
QGraphicsBlurEffect effect;
effect.setBlurHints(QGraphicsBlurEffect::QualityHi nt);
effect.setBlurRadius(5);
item.setGraphicsEffect(&effect);
item.pixmap().toImage().save("blur.png");
I try to apply blur to an image but nothing seems to happen and can't wrap my head arround whatmight be wrong here:
QPixmap buffer(image.size());
QGraphicsPixmapItem item(buffer);
QGraphicsBlurEffect effect;
effect.setBlurHints(QGraphicsBlurEffect::QualityHi nt);
effect.setBlurRadius(5);
item.setGraphicsEffect(&effect);
item.pixmap().toImage().save("blur.png");