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 08-08-2010, 07:35 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 2
dmurph is on a distinguished road
Default masking an image with a polygon

I have an application where one image will gradually appear over another in a pie-slice style. This is meant to be a smooth transition.

I've explored a lot of posts with masking but I haven't really found a good starting point. Should I use the OpenGL framework like in the PaintGL demo? What direction should I go for achieving this result?

I'm just looking for pointers in the right direction, as I'm feeling a bit lost. Any example code or references are appreciated as well
dmurph is offline   Reply With Quote
Old 08-08-2010, 10:50 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 27
abhimanipal is on a distinguished road
Default

Code:
	[UIView beginAnimations:nil context:NULL];
	[UIView setAnimationDuration:1];
	[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:imageView cache:YES];
//	[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:imageView cache:YES];
	imageView.image=image;
	[UIView commitAnimations];
This is what happens. I have an imageView which is displaying an image. Aftet the user presses a button another image whose data I have store in UIImage *image replaces the current image. This transition is animated
abhimanipal is offline   Reply With Quote
Old 08-09-2010, 01:02 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 2
dmurph is on a distinguished road
Default

Thanks, but unfortunately there is no provided animation that i'm looking for. Picture an expanding pie slice. It's for a timer, where the second hand slowly reveals the image.

On that note, is there an easy way to make a custom animation? Would it be easy to copy one of those animations to do what I want to do?

Last edited by dmurph; 08-09-2010 at 01:09 AM.
dmurph is offline   Reply With Quote
Old 08-09-2010, 08:24 PM   #4 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 27
abhimanipal is on a distinguished road
Default

making custom animations is not easy if you do not have sufficient background in that are.... best of luck
abhimanipal is offline   Reply With Quote
Reply

Bookmarks

Tags
image, image mask, mask

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: 334
10 members and 324 guests
arash5500, HemiMG, iram91419, linkmx, mediaspree, Objective Zero, Paul Slocum, stanny, Touchmint, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,656
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, iram91419
Powered by vBadvanced CMPS v3.1.0

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