cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geert Josten" <>
Subject RE: imageop-block in 2.2
Date Wed, 25 Oct 2006 10:30:47 GMT
> The problems with the rotations are related to;
>  a) clipping (can't remember if it happened for N * 90 
> rotations as well),
>  b) 'black' and not 'transparent' in the areas the image no 
> longer occupy.
> AffineTransform for rotating any angle is not the problem, 
> but I think one need to prepare the space needed before the 
> rotation is executed. I spent quite alot of time on it, but 
> in the end we didn't need it so I dropped it altogether.

Yes, the needed space (in terms of pixels) increases considerably when
you rotate for instance 41 degrees. But clipping and background are no
problem when rotating in steps of 90 degrees. All you need to do is
switch height and width if N is not even and leave it like it was if N
is even. :-)

Kind regards,

PS: I can send you the complete ImageReader if you like, though it is
based on older versions of Cocoon.. (2.1.4/2.1.6)
Drs. G.P.H. Josten

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
KvK 27164984

De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen,
verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

View raw message