[OpenJDK 2D-Dev] How are transformations done and some other questions
Dmitri Trembovetski
Dmitri.Trembovetski at Sun.COM
Mon May 19 16:28:53 UTC 2008
That's the best kind of question - that answers itself up
after a while =)
Dmitri
Clemens Eisserer wrote:
> Sorry, seems I've mixed some things up.
>
> After stepping through with a debugger things are much clearer now :)
>
> Sorry for the traffic, lg Clemens
>
> 2008/5/16 Clemens Eisserer <linuxhippy at gmail.com>:
>> Hello,
>>
>> 1.) I am currently investigating how AffineTransformations are done by
>> Java2D, and for the X11 Pipeline it seems for anything but
>> translations the PixelToShapeConverter is called and the general
>> path/fill algorythmns are used.
>> In the case of a simply Line, it is rotated and then sent to the
>> X11Renderer which continues processing as nothing would have
>> happended.
>>
>> Does the OpenGL pipeline work the same way?
>> I saw that it registers some TransformBlits, so is the tranformation
>> of everything exctept images handled by Java2D?
>> I wonder because this would mean that for images I would have to
>> adjust the context to rotate, but for everything else I would have to
>> reset it.
>> Seems I mess things somehow up :-/
>>
>> 2.) The X11-Pipeline does clipping itself (took me some time to
>> understand why the validation code always passed without re-seting the
>> current clip^^) for drawImage. Why was this done?
>>
>> Thanks, lg Clemens
>>
More information about the 2d-dev
mailing list