|
|
#1 |
|
Work with uiimage
How create app like this:
![]() Left of the line image black and white, right - color. Line is animated. How to do it? |
|
|
|
0
|
|
|
#2 |
|
I would have two seperate UIImageViews, one with the black and white version and one with color (and maybe a third with the red line.)
To generate the black and white version, I think you should look at CGFilters (I believe that's what they're called... I've experimented with them before but never used them in an actual app.) Edit: oh, and I'd shift the bounds/frame around on whichever image is ontop when the slider is moving. |
|
|
|
0
|
|
|
#3 | |
|
Quote:
|
||
|
|
0
|
|
|
#4 |
|
No, I think you should research the things I mentioned and give it a shot yourself first. I (and everyone else on the forums) will be available for help if you're not able to figure some of it out yourself, but we're not going to do all of it for you.
|
|
|
|
0
|
|
|
#5 | |
|
Quote:
As a bit of a tip. Top View = Redbar that you can touch (touchesBegin/touchesEnd methods). Next View Down = Color Image Next View Down = BW Image (CIFilters). This would be the easiest approach with out doing partial image filters. is to use two image that you change the bounds just like @ArtOfWarfare suggested. Any questions we would be happy to answer but not writing all the code for you. As another suggestion you may check out http://cocoacontrols.com. They may have something similar to what you want. ---------- Also if you would like to go with the approach of using a single image and filters you will need to use CIFilter Maps. https://developer.apple.com/mac/libr...reference.html ----------- Here is a sample control after a little google time. http://www.cocoacontrols.com/platfor.../wcbeforeafter
__________________
2.4 MacBook Aluminum 480GB SSD/750GB Optibay 8GB RAM CE | MacBook 2.4 SR 4GB, 320GB HD | PB G4 1.67 | 15 TiBook-DVI 800 iPhone 4S 16GB | iPhone 5 32GB
Last edited by KoolStar; Jan 25, 2013 at 06:20 AM. Reason: Fixed from CGFilter to CIFilters they are under CoreImage. |
||
|
|
1
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 08:07 AM.









Linear Mode
