• 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: RgnHandle replacement?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RgnHandle replacement?


  • Subject: Re: RgnHandle replacement?
  • From: Jonathan Wight <email@hidden>
  • Date: Fri, 08 Nov 2002 17:06:30 -0600

On 11/07/2002 01:04, "Scott Anguish" <email@hidden> wrote:

> On Thursday, November 7, 2002, at 01:57 AM, Jonathan Wight wrote:
>>>
>>> So, draw that intersected area of the icon into an NSImage that is 1x1
>>> (scale it) and then see if that single pixel is on.. you'd want to
>>> make
>>> sure that anti-aliasing is off when you do this..

Didn't work. More often than not the destination 1x1 pixel image is left
completely empty. Tried a few different compositing modes to see if that
made a difference and it didn't.

>> Hmm. That might work well I think. Cool!
>>
>
> Ah.. one other comment...
>
> I'm not sure if it'd be faster to just cycle through all the pixels
> within the intersected area until you hit one that proved that there
> was a pixel on.. I suppose in the worst case, then you might end up
> going through all the intersected region...

This is plan B. :-)

Jon.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: RgnHandle replacement? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Calling a unix command from Cocoa ?
  • Next by Date: Re: Calling a unix command from Cocoa ?
  • Previous by thread: Re: RgnHandle replacement?
  • Next by thread: Getting thumbnail of document to appear?
  • Index(es):
    • Date
    • Thread