Applying a transparent color over an image
Applying a transparent color over an image
- Subject: Applying a transparent color over an image
- From: Duncan Campbell <email@hidden>
- Date: Thu, 14 Apr 2005 18:23:02 +1000
Hey folks.
I've developed my own custom tabs (for an editor I'm building). My tabs
(NSView subclasses) have 3 images: 1 for unselected, 1 for mouse-over
(using a tracking-rect) and 1 for selected.
Since the 3 images are the same - just different colors - I was
thinking it would likely be much more efficient to simple apply some
kind of alpha-color transparency over the base unselected image (Note
the images are not solid colors - so using something like
[colorWithCalibratedWhite:] isn't going to work).
I guess I'm looking for something like: [imageWithCalibratedWhite:
alpha:] or similar...
Can anyone suggest a way of doing this?
Many thx,
D.
---------------------------------------------------------------
Duncan Campbell
http://www.duncanandsarah.com/duncan
---------------------------------------------------------------
_______________________________________________
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