Rotate image dialog
Bart Coppens
kde at bartcoppens.be
Sun Apr 3 22:40:40 CEST 2005
On Monday 28 March 2005 16:47, Boudewijn Rempt wrote:
> * I want a preview thumbnail of the rotated image/layer/(selection) -- and
> I haven't got a clue how to go about that. Bart, you've done the preview
> dialog -- have you any good suggestions for me?
If you mean to just have a widget displaying a small, (resized) rotated
version of a layer, you could probably just resize the layer, rotate it, and
add that layer to a (new) KisImage.
Then paint the image on the widget with the code from
KisPreviewView::render(QPainter &painter, KisImageSP image)
but without the painter.scale part, because the image would be scaled before
painting it.
Bart Coppens
More information about the kimageshop
mailing list