[Lazarus] Help with algorithm
Leonardo M. Ramé
l.rame at griensu.com
Fri Dec 20 19:18:02 CET 2013
On 2013-12-20 16:49:06 +0000, Mark Morgan Lloyd wrote:
> Leonardo M. Ramé wrote:
>
> >I'm thinking of copying the buffer into an two dimensional matrix, apply
> >transformations, then extract the overlapping part and lastly paint.
> >Before doing so, I'm asking here, because I'm afraid it could take too
> >long to apply "n" transformations before displaying the final result.
>
> I'm not sure how far this helps, but my understanding is that if you
> implement each transformation as a matrix, you can multiply the
> transformations to get a final matrix which you only then apply to
> each point. That would reduce the problem to the (non-linear)
> operation of deciding whether each transformed pixel was in range of
> the canvas.
>
> I did have a good reference for this sort of thing which I can't
> currently find, but http://msdn.microsoft.com/en-us/library/windows/desktop/ff684171(v=vs.85).aspx
> looks like a reasonable starting point.
>
Thanks, I'll try to implement it and apply to the buffer image.
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the Lazarus
mailing list