[Development] Painting an image onto itself
Christoph Feck
christoph at maxiom.de
Wed Apr 11 01:04:10 CEST 2012
On Wednesday 11 April 2012 00:52:33 Thiago Macieira wrote:
> The guarantees we give change how we can optimise this code. I'll
> be satisfied if we require that no single pixel is both source and
> destination.
I have seen code that do tiled fills by first blitting a source image
(lets say 100x100 pixels) to pos (0, 0), then blitting rect
(0,0,100,100) to (0,100,100,100), then (0,0,200,100) to
(0,200,200,100) etc., effectively doubling the filled size with each
blit.
--
Christoph Feck
http://kdepepo.wordpress.com/
KDE Quality Team
More information about the Development
mailing list