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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 05-25-2009, 09:19 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 67
Default Flip Image horizontally

Hey Every...

I am trying to find out how to programmically flip an imageview or image horizontally. I can rotate it and scale it
but cannot seem to flip it horizontally I can always just do it by hand and add new images to my bundle but I would prefer not to

Thanks all
Kurt
__________________
--------------------------------------------------------------
Applications:
Tap Dat! - Become a Tapping Fiend and compete with people around the world!
www.batlin-solutions.com
batlin is offline   Reply With Quote
Old 05-27-2009, 12:47 PM   #2 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 67
Default

Bump... anyone please?
__________________
--------------------------------------------------------------
Applications:
Tap Dat! - Become a Tapping Fiend and compete with people around the world!
www.batlin-solutions.com
batlin is offline   Reply With Quote
Old 07-10-2009, 03:37 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 16
Default

You probably found your answer already, but for anyone else that stumbles upon this question, what you need to do is scale the UIImageView by a negative amount.

So to flip it horizontally, you do this to your image view:
Code:
myImageView.transform = CGAffineTransformMakeScale(-1, 1);
alextrob is offline   Reply With Quote
Old 07-10-2009, 01:21 PM   #4 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 67
Default

Quote:
Originally Posted by alextrob View Post
You probably found your answer already, but for anyone else that stumbles upon this question, what you need to do is scale the UIImageView by a negative amount.

So to flip it horizontally, you do this to your image view:
Code:
myImageView.transform = CGAffineTransformMakeScale(-1, 1);
Wow, no actually I haddn't gotten an answer yet.. Thank you so much!!
I will give this a shot

Thank you!!!
__________________
--------------------------------------------------------------
Applications:
Tap Dat! - Become a Tapping Fiend and compete with people around the world!
www.batlin-solutions.com
batlin is offline   Reply With Quote
Old 07-10-2009, 01:37 PM   #5 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 67
Default

Quote:
Originally Posted by batlin View Post
Wow, no actually I haddn't gotten an answer yet.. Thank you so much!!
I will give this a shot

Thank you!!!
Worked Like a charm!!!
Is there a way to combine 2 transforms.. like the one you just showed and a scale?
__________________
--------------------------------------------------------------
Applications:
Tap Dat! - Become a Tapping Fiend and compete with people around the world!
www.batlin-solutions.com
batlin is offline   Reply With Quote
Old 12-09-2009, 09:23 PM   #6 (permalink)
Support Female Indie-Devs
 
sarahconnor's Avatar
 
Join Date: Apr 2009
Location: Austin
Posts: 197
Smile

Thanks for posting! This helped me as well!
~Mandy
__________________
Follow us on Twitter @mandylowry or @blackhivemedia
http://www.blackhivemedia.com/arcadejumper.html
sarahconnor is offline   Reply With Quote
Reply

Bookmarks

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: 935
13 members and 922 guests
7twenty7, astalavista, betterlee, davidcoderlab, donlucacorleone, JuliaHarris, leticiatroutman, marWIN77, narutov2, nikhil, rocotilos, Stokestack, watermelonvodka
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,479
Threads: 89,092
Posts: 380,125
Top Poster: BrianSlick (7,091)
Welcome to our newest member, JuliaHarris
Powered by vBadvanced CMPS v3.1.0

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