Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In example you provided there is no color manipulation on the picture. Every time you change the color — new .swf asset with car loaded into the app(<a href="http://www.bmw.com/_common/visualizer/data/rebrush/model/PM71/walkaround/base/P0A53.swf" rel="nofollow noreferrer">example</a>). in my opinion that's the easiest way to solve problem like this.</p> <p>On other hand, if you really want to manipulate color channels of particular image, the <a href="http://www.quasimondo.com/archives/000565.php" rel="nofollow noreferrer">ColorMatrix Class</a> by <a href="https://stackoverflow.com/users/111030/quasimondo">Quasimondo</a> is in my opinion the best tool to do this. The tricky(hardest, maybe in some cases impossible) part here will be to select particular part of the picture were you need to convert colors.</p> <p><strong>Update</strong></p> <p>the idea is that, you load your app, withh .swf asset only for the default color, and when user choose any other color you simply download additional .swf asset.</p> <p>As for the second approach with color manipulation, I'm thinking, if you need this <em>only for already predefined pictures</em>, that you can cut out part of your picture which you want to manipulate, and convert it to .png with transparent background, and put it on top of your original picture. So you will have something that looks like original pic, but in reality it's to separated layers: one is your unchangeable part of the image, and other is the part that you want to manipulate. Here is the example with unicorns(because everybody love unicorns): <img src="https://i.stack.imgur.com/IkFeq.png" alt="enter image description here"></p> <p>Now you can use ColorMatrix to manipulate color channels of unicorn, and all other parts of your picture will be unchangeable. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload