Rendering & zooming
Boudewijn Rempt
boud at valdyas.org
Sat Sep 25 16:47:19 CEST 2004
Zooming in and zooming out doesn't work, curiously enough mostly with images
that don't fit into the viewport. I'm not sure what's happening exactly, but
a 1600x1200 image zoomed out (made smaller) by clicking once on the zoom-out
button is rendered in KisDoc::paintContent as follows:
krita: Rendering rect: (682,0,256,156)
krita: Rendering rect: (938,0,256,156)
krita: Rendering rect: (1194,0,256,156)
krita: Rendering rect: (1450,0,150,156)
krita: Rendering rect: (268,0,256,256)
krita: Rendering rect: (524,0,158,256)
krita: Rendering rect: (268,256,256,256)
krita: Rendering rect: (524,256,158,256)
krita: Rendering rect: (268,512,256,256)
krita: Rendering rect: (524,512,158,256)
krita: Rendering rect: (268,768,256,256)
krita: Rendering rect: (524,768,158,256)
krita: Rendering rect: (268,1024,256,176)
krita: Rendering rect: (524,1024,158,176)
krita: Rendering rect: (1568,0,32,256)
krita: Rendering rect: (1568,256,32,256)
krita: Rendering rect: (1568,512,32,256)
krita: Rendering rect: (1568,768,32,256)
krita: Rendering rect: (1568,1024,32,176)
krita: Rendering rect: (0,0,256,256)
krita: Rendering rect: (256,0,12,256)
krita: Rendering rect: (0,256,256,256)
krita: Rendering rect: (256,256,12,256)
krita: Rendering rect: (0,512,256,256)
krita: Rendering rect: (256,512,12,256)
krita: Rendering rect: (0,768,256,256)
krita: Rendering rect: (256,768,12,256)
krita: Rendering rect: (0,1024,256,176)
krita: Rendering rect: (256,1024,12,176)
krita: Rendering rect: (0,0,256,256)
krita: Rendering rect: (256,0,256,256)
krita: Rendering rect: (512,0,256,256)
krita: Rendering rect: (768,0,256,256)
krita: Rendering rect: (1024,0,256,256)
krita: Rendering rect: (1280,0,52,256)
krita: Rendering rect: (0,256,256,256)
krita: Rendering rect: (256,256,256,256)
krita: Rendering rect: (512,256,256,256)
krita: Rendering rect: (768,256,256,256)
krita: Rendering rect: (1024,256,256,256)
krita: Rendering rect: (1280,256,52,256)
krita: Rendering rect: (0,512,256,256)
krita: Rendering rect: (256,512,256,256)
krita: Rendering rect: (512,512,256,256)
krita: Rendering rect: (768,512,256,256)
krita: Rendering rect: (1024,512,256,256)
krita: Rendering rect: (1280,512,52,256)
krita: Rendering rect: (0,768,256,256)
krita: Rendering rect: (256,768,256,256)
krita: Rendering rect: (512,768,256,256)
krita: Rendering rect: (768,768,256,256)
krita: Rendering rect: (1024,768,256,256)
krita: Rendering rect: (1280,768,52,256)
krita: Rendering rect: (0,1024,256,176)
krita: Rendering rect: (256,1024,256,176)
krita: Rendering rect: (512,1024,256,176)
krita: Rendering rect: (768,1024,256,176)
krita: Rendering rect: (1024,1024,256,176)
krita: Rendering rect: (1280,1024,52,176)
Which fits in with what's shown in the window. I don't know yet why it does
this, perhaps someone else has a bright idea. I tried rendering all of it
into one big pixmap, but that gets horribly slow when zooming in, of course,
and takes oodles of memory.
Worst thing is, I have a hazy memory of touching this code, so it might well
be a bug I created myself.
--
Boudewijn Rempt | "Geef mij maar zuurtjes."
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20040925/d6c94bfe/attachment-0001.pgp
More information about the kimageshop
mailing list