Hello,

In Pharo 2.0 (true in 1.4 as well), it looks PNG bitmap are wrongly
rotated or scaled when they contain alpha transparency.

In the example bellow with the joined bitmap, the alpha gray color are
rendered darker when the imagemorph is scaled or rotated.

Sqeak does not suffer this problem


| dir morph transform form|
dir := FileSystem disk workingDirectory parent.
morph := (ImageReadWriter formFromFileNamed: (dir / 'bubble.png')
fullName) asMorph.
transform := TransformationMorph new asFlexOf: morph.
transform smoothingOn ; angle: Float pi / 3; scale: 1.
transform openInWorld


Thanks

Hilaire


-- 
Dr. Geo http://drgeo.eu

<<attachment: bubble.png>>

Reply via email to