Welcome to Atalasoft Community Sign in | Join | Help

#10 – If you ever wanted to see Jar Jar Binks differently -- SetAlphaColorCommand

Okay, chances are, if you’re reading this blog, you know a little something about computers, and add to that you might like science fiction movies, then on top of that you might like the Star Wars movies.  Without getting into the political debate of “should Jar Jar have been sacrificed to the Sando aqua monster just for giggles”, if you had a picture of Jar Jar (without infringing upon copyrights) against a green background, and you wanted to put Jar Jar against different backgrounds, you could use the SetAlphaColorCommand to turn the green transparent.

All kidding aside, the SetAlphaColorCommand lets you pick a color in your image, and within a tolerance, turns that color transparent.  You can set the alpha value you want to place for the color (maybe you don’t want the color fully transparent).  Also, if your original image is not in an alpha-supporting pixel format, it will be automatically changed.

Since a picture is worth a thousand words, here is the command in action.

Before:


After, with the color set to Aqua and a tolerance of 15 (set in the DotImage Demo, because of Windows Live Writer’s issue with transparency):

 

Have fun with this one.  Try not to do anything *too* mean to Jar Jar.

By the way, the Wednesday Webinars are in both the morning and in the evening.  Check out the education page to sign up.

Published Wednesday, August 12, 2009 5:23 PM by Elaine

Comments

No Comments
Anonymous comments are disabled