• 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: "Louis C. Sacha" <email@hidden>
  • Date: Wed, 10 Nov 2004 04:36:02 -0800

Hello...

Well, if what you are really after is just an NSBitmapImageRep, perhaps

* Lock focus on the original large NSImage
*create an NSBitmapImageRep and use the "initWithFocusedViewRect:" initializer
*unlock focus from the original image.

You can add the bitmap image rep to an new NSImage if you want to use that way, or just save it using the NSBitmapImageRep methods...


Hope that helps,

	Louis


At 14:50 +0100 2004-11-08, Sebestyén Gábor wrote:
On 2004. Nov 8, , at 1:27 du, j o a r wrote:

* Unlock focus on the new image

Everything is fine until I want to use its image rep which is actually a cached one. I want to save this piece as a jpeg file but cached image rep doesn't support such a feature.
How can I convert cached image rep to a bitmap image rep?


 Gábor


_______________________________________________ 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>)
 >Re: get subimage from an NSImage (From: j o a r <email@hidden>)
 >Re: get subimage from an NSImage (From: Sebestyén Gábor <email@hidden>)

  • Prev by Date: Re: how to disable 'Maximize window' button
  • Next by Date: Re: Filtering out all invisible files in a file system browser
  • Previous by thread: Re: get subimage from an NSImage
  • Next by thread: Re: get subimage from an NSImage
  • Index(es):
    • Date
    • Thread