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

Re: Doubled Pixels


  • Subject: Re: Doubled Pixels
  • From: Graham Cox <email@hidden>
  • Date: Sat, 24 Jun 2017 10:11:32 +1000

> On 24 Jun 2017, at 1:45 am, Gerriet M. Denkmann <email@hidden> wrote:
>
> the image looks fine, but when I write subData to disk, it has 64 x 64 pixels.


By making the NSBitMapRepresentation yourself, creating a context for it,
drawing to that.

If you make it yourself using the long-winded but complete initializer, you
have total control. Any of the other ‘convenience’ methods do various things
that you can’t see, are poorly documented, and give unexpected results. Even
when they work today their implementations change and one day might do
something else, suddenly breaking your code. I’ve certainly had that happen
when Retina screen came out for example, and had to go back and do it using the
long initializer so I got what I asked for.

—Graham
_______________________________________________

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

  • Follow-Ups:
    • Re: Doubled Pixels
      • From: Jeff Szuhay <email@hidden>
References: 
 >Doubled Pixels (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Single-channel video recording in iOS?
  • Next by Date: Re: Why is XCode suddenly doing this?
  • Previous by thread: Re: Doubled Pixels
  • Next by thread: Re: Doubled Pixels
  • Index(es):
    • Date
    • Thread