• 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: NSImage representations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage representations


  • Subject: Re: NSImage representations
  • From: Jeremy Rotsztain <email@hidden>
  • Date: Mon, 9 Jul 2007 12:24:51 -0400


I'll look into that.

For the time being, I just created a new NSImage (at a lower resolution) and drew into it using NSImage drawInRect: fromRect:

Jeremy

On Jul 9, 2007, at 1:20 AM, Dorian Johnson wrote:

I think you'll have to do the drawing method I mentioned (lock focus onto the NSBitmapImageRep via NSGraphicsContext) because I don't think NSImage will immediately update its internal bitmap store if you set the size (someone please correct me if I'm wrong - I haven't tested that).

Dorian

On Jul 8, 2007, at 11:45 PM, Jeremy Rotsztain wrote:

I've got it working now, but have noticed some inconsistencies when my source image is scaled. For example, only half of the image will be 'quantized'.
Is this because the resolution of the NSBitmapImageRep that I've created is based resolution of the source image's representation and not it's scaled one?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Fwd: NSImage representations (From: Jeremy Rotsztain <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Jeremy Rotsztain <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Jeremy Rotsztain <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)
 >Re: NSImage representations (From: Jeremy Rotsztain <email@hidden>)
 >Re: NSImage representations (From: Dorian Johnson <email@hidden>)

  • Prev by Date: Re: Multi-project solution in Xcode
  • Next by Date: Path to desktop
  • Previous by thread: Re: NSImage representations
  • Next by thread: Re: NSImage representations
  • Index(es):
    • Date
    • Thread