• 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: get subimage from an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get subimage from an NSImage


  • Subject: Re: get subimage from an NSImage
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 8 Nov 2004 16:03:43 +0100

At 13:10 Uhr +0100 08.11.2004, Sebestyén Gábor wrote:
Is there a Cocoa-way to get subimage from an NSImage ( ie. subImage = [anImage subImageWithRect: aRect ] )? I need to clip an image apart to smaller pieces but don't find a way to do it simply.
Thanks in advance,

The way I did it was to simply create a new NSImage of the desired size and then draw the other one into that. I wrote a category on NSImage to do that for me.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >get subimage from an NSImage (From: Sebestyén Gábor <email@hidden>)

  • Prev by Date: Re: Loadable bundles and common files
  • Next by Date: Re: $10 for a few minutes work
  • Previous by thread: Re: get subimage from an NSImage
  • Next by thread: [SOLVED]RE: NSNumberFormatter question
  • Index(es):
    • Date
    • Thread