Image update strategy
Emanuele Tamponi
emanuele at valinor.it
Sat Apr 5 10:24:37 CEST 2008
I wrote a simple (not optimized) version of the algorithm.
It takes as input a set of rects from command line (x,y,w,h) and calculates
the non overlapping regions of them.
This solves one of the two problems in my idea, the second being the
difficulty of finding "visible" layers.
Even without a solution to this second problem, I think that this way to do
layer updating is very clear, linear, without strange recursive needs of
visitors and the like. And it works directly as a bottom-up update strategy,
so that adj. layers as well as alpha blending can be easily taken into
account.
The executable is in:
www.valinor.it/test2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 1147 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20080405/d1f2ee41/attachment.bin
More information about the kimageshop
mailing list