• 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: Creating black and white image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating black and white image


  • Subject: Re: Creating black and white image
  • From: Osamu Shigematsu <email@hidden>
  • Date: Thu, 23 Dec 2004 16:05:45 +0900

Thank you very much for your advice.

On Dec 23, 2004, at 5:19 AM, Clark Cox wrote:

Have you tried replacing

[dst lockFocus];

with:

[dst lockFocusOnRepresentation: rep];

I have tried, but noting changed.

I also checked samplePerPixel and bitsPerSample.

    NSLog(@"spp: %d", [rep samplesPerPixel]);
    NSLog(@"bps: %d", [rep bitsPerSample]);

The results were 1.

I wonder if why black and white (1 bit depth) bitmap representation contains full color image.

--
Osamu Shigematsu

_______________________________________________
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: 
 >Creating black and white image (From: Osamu Shigematsu <email@hidden>)
 >Re: Creating black and white image (From: Clark Cox <email@hidden>)

  • Prev by Date: Address Book Framework and Group Selection
  • Next by Date: Re: More authorization woes, the methods giving me trouble
  • Previous by thread: Re: Creating black and white image
  • Next by thread: Finder vs. Quartz performance.
  • Index(es):
    • Date
    • Thread