• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rotating NSImage in NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotating NSImage in NSImageView


  • Subject: Re: Rotating NSImage in NSImageView
  • From: Mario Diana <email@hidden>
  • Date: Sat, 24 Nov 2001 09:18:10 -0500

Thanks! I found it by searching "rotating buck" on the archives!

I'm off to wrestle with the code.

M -

On Friday, November 23, 2001, at 10:44 PM, Erik M. Buck wrote:

I posted a nice little example of rotating an image to any angle. The
example also shows how to clip to any path including a path containing
glyphs. If you can not fine the posted example, send mail to me and I will
email it to you. The example is very small. Yu probably only need one or
two more lines of code.

The example is in Objective-C.


----- Original Message -----
From: "Mario Diana" <email@hidden>
To: <email@hidden>
Sent: Friday, November 23, 2001 6:47 PM
Subject: Rotating NSImage in NSImageView


Is there a simple way of rotating an image? Let me explain.

I'm handling my image the easy way. I create an NSData from a
java.io.File, convert that to an NSImage, finally setting the NSImage in
an NSImageView. That takes just a few lines of code (which makes me very
happy).

Now, I'd like to able to push a button and rotate the image 90 degrees.
Is there a simple method to rotate an image, and if so, in which class
will I find it? If there isn't a simple way of doing this, would I have
to throw out the code I've described above and do the whole thing in
some very involved way?

My skills are limited ;-)

If this is going to involve some he-man programming skills, could
somebody please give me a hint as to what part of the documentation I
should read, and to which part of that I should give special attention?
(I saw a one line answer to a similar question on the archives, and it
was as good as Greek to me.)

Thanks!
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Rotating NSImage in NSImageView (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 1 #884 - 17 msgs
  • Next by Date: How do I put an image as desktop-pict from my app?
  • Previous by thread: Re: Rotating NSImage in NSImageView
  • Next by thread: document types with NSDocument framework
  • Index(es):
    • Date
    • Thread