 |
 |
|
 |
05-25-2009, 08:19 AM
|
#1 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Location: Austin, TX
Posts: 66
|
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
|
|
|
05-27-2009, 11:47 AM
|
#2 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Location: Austin, TX
Posts: 66
|
Bump... anyone please?
__________________
--------------------------------------------------------------
Applications:
Tap Dat! - Become a Tapping Fiend and compete with people around the world!
www.batlin-solutions.com
|
|
|
07-10-2009, 02:37 AM
|
#3 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 16
|
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);
|
|
|
07-10-2009, 12:21 PM
|
#4 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Location: Austin, TX
Posts: 66
|
Quote:
Originally Posted by alextrob
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
|
|
|
07-10-2009, 12:37 PM
|
#5 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Location: Austin, TX
Posts: 66
|
Quote:
Originally Posted by batlin
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
|
|
|
12-09-2009, 08:23 PM
|
#6 (permalink)
|
|
Self-Taught Code Monkey
iPhone Dev SDK Supporter
Join Date: Apr 2009
Location: Austin
Posts: 162
|
Thanks for posting! This helped me as well! 
~Mandy
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 415 |
| 42 members and 373 guests |
| acerola, alekssebasstrs, aryaxt, bbc z, benoitr007, BrianSlick, bryhardt, Chilibird, dany88, dcinqc, DenVog, develsolutions, Dorald, funkyspider, georgeburns, harrytheshark, HemiMG, iTrackiGiveaway, jbro, jsaarinen, KSA_girl, MarkC, Meoz, Mickurt, mikeyb, noobAppDeveloper, Nuncha, OurMountainofIdeas, oyvindj, penjettti, Pwsoccer, rocketman240, Rudy, sayhong, scotopia, shark4ever, Shlice Ideas, siwatson, Thom786, upperhouse, walkman2001, warcrow |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,301
Threads: 39,102
Posts: 171,429
Top Poster: smasher (2,575)
|
| Welcome to our newest member, alekssebasstrs |
|