• 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
NSImage opacity or contrast (brightness)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage opacity or contrast (brightness)


  • Subject: NSImage opacity or contrast (brightness)
  • From: Michael Marmarou <email@hidden>
  • Date: Fri, 19 Aug 2005 10:54:56 -0700

I have an image I am drawing in an NSRect, but I need it to be much
lighter (like turning the opactiy down) because it's a background.
The image file cannot be modified.  I see some sample code on the web
for icons, but it doesn't seem to be working for my NSImage.   Also, I
see there is a dissolveToPoint method which is used, but again I
cannot get it to work.

- (void)drawBackground:(NSRect)rect
{
NSImage *image = [NSImage imageNamed:@"image"];
.......

[image drawInRect...];
}

I need that ....... to ligthen my image, or lower opacity, or whatever
gets that effect.

Thank you for any help,
   Michael Marmarou
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSImage opacity or contrast (brightness)
      • From: Jack Nutting <email@hidden>
  • Prev by Date: NSBrowser's column 0
  • Next by Date: (id) sender
  • Previous by thread: NSBrowser's column 0
  • Next by thread: Re: NSImage opacity or contrast (brightness)
  • Index(es):
    • Date
    • Thread