Re: Rotated display of bitmap images?
Re: Rotated display of bitmap images?
- Subject: Re: Rotated display of bitmap images?
- From: Dinu Gherman <email@hidden>
- Date: Tue, 18 Jun 2002 08:35:03 +0200 (CEST)
Andreas Mayer <email@hidden>:
>
> [self setFrameRotation:10.0];
>
>
Use NSAffineTransform instead:
>
>
NSAffineTransform *transform = [NSAffineTransform transform];
>
[transform rotateByDegrees:-angle];
That has exactly the same effect as setFrameRotation: iff
I add either
[transform set];
or
[transform concat];
to enable the transform. Only the image "origin" is rotated,
but not the image data. In fact, I can also remove this code
and still get the same thing displayed:
>
> [img drawAtPoint: p
>
> fromRect: rect
>
> operation: NSCompositeDestinationAtop
>
> fraction: 1.0];
Anybody more of a clue?
Regards,
Dinu
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.