All Projects → eliaskg → EKImageReflection

eliaskg / EKImageReflection

Licence: other
With EKImageReflection you can extend a regular CPImageView for displaying a reflection on it's bottom.

Programming Languages

Objective-J
44 projects

EKImageReflection

EKImageReflection is an extension for the Cappuccino framework.

With EKImageReflection you can extend a regular CPImageView for displaying a reflection on it's bottom.

A demo can be seen here.

The class uses the canvas tag for drawing the reflection in modern browsers and uses MS effects in IE.

It works in Internet Explorer, Mozilla Firefox, Safari, Google Chrome and Opera.

This extension is inspired by Ken's Reflection.js.

Installation

Simply import the file in your application's AppController or any other class:

@import "EKImageReflection.j"

Usage

A reflection can be added to the view after adding the target CPImageView:

var reflection = [[EKImageReflection alloc] initWithImageView:myImage];
[contentView addSubview:reflection];

Manipulate the reflection's height with

[reflection setReflectionHeight:200];

Edit the reflection's opacity with

[reflection setAlphaValue:0.5];
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].