F8 photo to drawing trickery

An old Photoshop technique modified for Flash… Import an image, convert it to a movie clip named “image_mc” and give this script a whirl:
[AS]import flash.display.;
import flash.filters.
;
//
// make a copy of the image mc
var imgCopy_bmp:BitmapData = new BitmapData(image_mc._width, image_mc._height);
imgCopy_bmp.draw(image_mc);
//
// make a copy of the copy which will be inverted and blurred
var blur_bmp:BitmapData = new BitmapData(imgCopy_bmp.width, imgCopy_bmp.height);
blur_bmp.draw(imgCopy_bmp);
//
// attach the bitmap copies to movie clips
var imgCopy_mc:MovieClip = image_mc._parent.createEmptyMovieClip(“cmc”, image_mc._parent.getNextHighestDepth());
imgCopy_mc._x = image_mc._x;
imgCopy_mc._y = image_mc._y;
imgCopy_mc.attachBitmap(imgCopy_bmp, 0);
//
var traced_mc:MovieClip = image_mc._parent.createEmptyMovieClip(“tmc”, image_mc._parent.getNextHighestDepth());
traced_mc._x = image_mc._x;
traced_mc._y = image_mc._y;
traced_mc.attachBitmap(blur_bmp, 0);
//
// invert and blur the top mc - blur value of 7 with low quality looks pretty good
traced_mc.filters = [new ColorMatrixFilter([-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0]), new BlurFilter(7, 7, 1)];
//
// set the blend mode of the blurred mc to “add”
//(in Photoshop, colordodge works best, but there is no colordodge mode in Flash, yet)
traced_mc.blendMode = 8;[/AS]
here’s a quick example. (about 160k with no preloader)

Can’t think of a good use, but it’s fun Flashturbation…

eyecandy! that’s real nice eyecandy.

I have no idea how it works, but it sure is pretty. :thumb:

That’s pretty cool, could be used as a nice transition effect.

very nice! i especially dig the color with line thickness set high:)
great work man!:thumb:

Come to think of it, that might look nice applied to a video inside a movie clip… hmmm…

incidentally, what I called “line thickness” in that example is actually the blur amount, so to get that effect with the posted script just raise that 7 to whatever… never tried adjusting the x or y blur either - that may be interesting… or not…

great work.

It sure rocks… Nice job man!!! :thumb2:

cool!

wow!.. as for possible implementation: might look sweet as a rollOver effect on an image thumbnail…