Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2011, 05:56 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 245
samurle is on a distinguished road
Question Glowing UIImageView?

How to make a UIImageView glow for a second?

Specifically, how to make all the edges of the UIImageView glow evenly?

This is not a button. It's just a rectangle with a custom image on it.
samurle is offline   Reply With Quote
Old 10-05-2011, 06:41 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Create the glow effect in Photoshop/Gimp etc, and switch the images.
baja_yu is offline   Reply With Quote
Old 10-05-2011, 06:44 AM   #3 (permalink)
Software Engineer - iOS
 
pawanshakya's Avatar
 
Join Date: Sep 2011
Location: Hyderabad, India
Posts: 10
pawanshakya is on a distinguished road
Default

You can add images with Glow effect & than apply UIView animation as per your requirement for making the effect smooth.
pawanshakya is offline   Reply With Quote
Old 10-05-2011, 08:10 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 245
samurle is on a distinguished road
Question

Quote:
Originally Posted by baja_yu View Post
Create the glow effect in Photoshop/Gimp etc, and switch the images.
The glow should be animated (e.g. fade out), so I don't see how switching to a static image would help.

Let me explain the effect I'm trying to create.

I'm trying to create an outer glow around the UIImageView. The glow doesn't touch or obscure the image.
The glow extends out from the edges of the UIImageView, so it is much larger than the UIImageView.

And, I don't know how to layer the glow on top of the image, because the image itself isn't
a subview. I create it like so:

Code:
UIImageView *view = [[UIImageView alloc] initWithImage:myImage];
How to add an outer-edge glow image to this, which would be much larger than the original image?

Last edited by samurle; 10-05-2011 at 08:12 AM.
samurle is offline   Reply With Quote
Old 10-05-2011, 08:14 AM   #5 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

As pawanshakya suggested you can use UIView animations to fade it in. I was just suggesting the basic principle. If you know ahead of time the dimensions of the image you can create a sort of frame with the glow effect, then superimpose that frame image on your image, and fade it into view. It would appear as if the image below is glowing. That way you wont have to create a glow version of all your images, just one frame image and use it on all images.
baja_yu is offline   Reply With Quote
Old 10-05-2011, 08:24 AM   #6 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 245
samurle is on a distinguished road
Question

Quote:
Originally Posted by baja_yu View Post
As pawanshakya suggested you can use UIView animations to fade it in. I was just suggesting the basic principle. If you know ahead of time the dimensions of the image you can create a sort of frame with the glow effect, then superimpose that frame image on your image, and fade it into view. It would appear as if the image below is glowing. That way you wont have to create a glow version of all your images, just one frame image and use it on all images.
When you say "frame", what exactly is that? Is it another UIImageView?

If so, what then if my image is moving or animating? How to attach to my image?

How can I superimpose a glow effect over an animated/moving image without destroying the original image?
samurle is offline   Reply With Quote
Old 10-05-2011, 08:28 AM   #7 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

It depends on what you are actually doing. But imagine you have a photo that you want to hang on the wall (that's your image you have now), the glow would be the picture frame you use when hanging it. So you could have the glow image as a separate imageview and when moving move it along with the other, or have the imageview with your image be a subview of the glow imageview. As I said, depends on what you are doing.
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Tags
glow, glowing, highlight, uiimageview, uiview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 402
17 members and 385 guests
13dario13, 7twenty7, eski, EvilElf, glenn_sayers, HemiMG, iOS.Lover, jarv, LunarMoon, n00b, pbart, Pudding, sacha1996, Sami Gh, UMAD, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,122
Posts: 402,906
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:21 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0