• 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: Giving an Image a Reflective Surface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Giving an Image a Reflective Surface


  • Subject: Re: Giving an Image a Reflective Surface
  • From: Michael Watson <email@hidden>
  • Date: Wed, 28 Feb 2007 16:40:38 -0500

Core Image makes this really easy. Flip a copy of your image, paint a gradient over it using the CILinearGradient filter, voila. If your background is, say, black, start the gradient at black with near full alpha--or whatever looks right for your use--then end with an alpha of 0.0.

You can draw it into an existing image used elsewhere, or use another view. Whatever works best.


-- m-s


On 28 Feb, 2007, at 13:05, Steve Sheets wrote:

Anyone have source examples or suggestions for this one?

Using 10.4 APIs, I want to draw on using a given image while giving it a reflective surface appearance When I saw a reflective surface, I mean a inverse, rotated & faded secondary image at the bottom of the first image. Thus the image would look similar to images displayed using latest iTunes or Front Row applications.

I could use either a technique to convert the image into a new image that contains the original image and the reflection, or code that would draw the image and reflection directly to the graphic context. Either way would be fine with me. What is the best method?

The original source image is an NSImage (it has to be since I am importing faces from the Address Book API), but I can convert that to a CGImage if needed. I would prefer code that draws to graphic context.

Any ideas, hints or examples out there?

Thank you,

Steve Sheets
Midnight Mage Software
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40bungie.org


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Giving an Image a Reflective Surface (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: Window from Shell Application
  • Next by Date: Fetch with IB and programmatic predicates
  • Previous by thread: Giving an Image a Reflective Surface
  • Next by thread: Re: Giving an Image a Reflective Surface
  • Index(es):
    • Date
    • Thread