• 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
Composing a darker image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Composing a darker image


  • Subject: Composing a darker image
  • From: Tito Ciuro <email@hidden>
  • Date: Fri, 22 Aug 2003 16:43:31 +0200

Hello,

I need to draw a darker image of a given TIFF-based image. The lighter version was easy:

[image compositeToPoint: NSMakePoint(iconStatesRect.origin.x, iconStatesRect.origin.y)
operation: NSCompositeSourceOver
fraction: 0.5];

A fraction of 1.0 represents the original picture, but I need to darken the image a bit, just the way an icon reacts to a click on a toolbar, for example. How can I do this?

Thanks,

-- Tito
_______________________________________________
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.

  • Follow-Ups:
    • Re: Composing a darker image
      • From: Andreas Mayer <email@hidden>
    • Re: Composing a darker image
      • From: Chris Giordano <email@hidden>
  • Prev by Date: Getting the contents of a custom view
  • Next by Date: Re: massive amounts of offscreen windows
  • Previous by thread: Re: Getting the contents of a custom view
  • Next by thread: Re: Composing a darker image
  • Index(es):
    • Date
    • Thread