 |
 |
|
 |
05-25-2009, 09: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, 12:47 PM
|
#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, 03:37 AM
|
#3 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 15
|
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, 01: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, 01: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, 09:23 PM
|
#6 (permalink)
|
|
Self-Taught Code Monkey
iPhone Dev SDK Supporter
Join Date: Apr 2009
Location: Austin
Posts: 157
|
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: 482 |
| 57 members and 425 guests |
| AdyCoder, atsd, AXP, bensj, blackoutq3, bravetarget, cakeisalie, CHV, coconnor, CunningCat, danny8, davek, embedded, Gamer211, ggalante, Gudus, harrytheshark, healthyutech, henmue, iFizzgig, imsatasia, intomo, iPhoneDevelopment, Jeremy1026, johnnybluejeans, krowczyk, lepetitapps, Link, MacSteve85, markbuchanan, MasterLee, MiniRobinho, mlo, nibby, NicolasD, not_too_shabby, P2k, pokypine, racer_X, raheel, robotcult, SimonK, talakoski, Tambourin, tturk, Type25, umarmara, vcanic, virvalid, Vivek Nirkhe, Vonswanko, wassupdoc, winklllll, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,505
Threads: 35,788
Posts: 156,785
Top Poster: smasher (2,449)
|
| Welcome to our newest member, SimonK |
|