[Kde-graphics-devel] KSnapshot marker and pen function

Albert Astals Cid aacid at kde.org
Thu Oct 23 22:33:25 UTC 2014


El Dimecres, 22 d'octubre de 2014, a les 08:36:08, Márton Miklós va escriure:
> Yes I can do that, but it takes time -> decreases my productivity, 

It takes time? It's pressing a button in ksnapshot, how does that take time?

Cheers,
  Albert

> and I
> like copy pasting the screenshots directly to my e-mail application. I do
> not want to have complex drawing functions just a pen, a marker, place text
> and a rubber tool.
> 
> 2014-10-22 0:53 GMT+02:00 Albert Astals Cid <aacid at kde.org>:
> > El Dissabte, 18 d'octubre de 2014, a les 15:12:01, Márton Miklós va
> > 
> > escriure:
> > > Hello all,
> > > 
> > > The Windows 7 snipping tool has a feature what I like very much: it
> > > allows drawing to the screenshot with a pen and a marker.
> > > I would like to implement the same functionality in KSnapshot.
> > 
> > Why not just export it to kolourpaint or any other painting program and do
> > it
> > there?
> > 
> > I'm not the maitainer but it seems to me a bit out of scope to have
> > drawing
> > inside ksnapshot.
> > 
> > Cheers,
> > 
> >   Albert
> >   
> > > My first ide was changing the label based preview to QGraphicsView based
> > > one, and creating QGraphicsItem based objects for storing the user's
> > > drawings.
> > > 
> > > *What do you think about this approach?*
> > > 
> > > Currently I am having a problem with the anti-aliasing:
> > > 
> > > 
> > > 
> > > The bottom widget is the current label based one and the upper one is a
> > > QGraphicsView displaying the same QPixmap through a QGraphicsPixmapItem.
> > > 
> > > I have set setRenderHint(QPainter::HighQualityAntialiasing, true); and
> > > setRenderHint(QPainter::SmoothPixmapTransform, true); on the view and
> > > setTransformationMode(Qt::SmoothTransformation); on the QPixmapItem but
> > > it did not helped.
> > > 
> > > *Do you have any idea how could it be worka**rounded?
> > > 
> > > *Thank you for your answers in advance!*
> > > *



More information about the Kde-graphics-devel mailing list