rotating an image
rotating an image
- Subject: rotating an image
- From: Robert Miller <email@hidden>
- Date: Wed, 27 Jun 2001 16:50:16 -0400
- Organization: RFM & Associates
Hello fellow Cocoans,
I'm relatively new to Cocoa (but not the Mac) . I'm trying to
display an image in a scrollable view. I have it working correctly using
a subclassed custom view which contains an instance of NSImage, which is
the document view for an NSScrollerView. The question is how do I rotate
the image say 90 degrees and have it get displayed that way? Simply
rotating the bounds coordindate of the view container does not effect
the compositing of the image to the screen. The cocoa docs. make mention
of this in the NSImage section where "Coordinate Systems" is the topic,
stating that the image does not get affected by the current coordinate
settings. So how does one rotate an image then ??
Regards,
bob m.