• 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: Jeff Szuhay <email@hidden>
  • Date: Fri, 23 Jun 2017 19:59:04 -0700

For a different reason, I’ve posted the most complete CGBitmapContext example
I’ve seen anywhere (which is why I posted it). You can see it here

        http://www.blinddogsoftware.com/goodies/#DontSpillTheBits

and customize to your needs.

You can ignore the CGLayers, CGImage, and CIImage effects. The bitmap context
creation is what you want to look at.


> On Jun 23, 2017, at 5:11 PM, Graham Cox <email@hidden> wrote:
>
>
>> 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

_______________________________________________

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: 
 >Doubled Pixels (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Doubled Pixels (From: Graham Cox <email@hidden>)

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