Some Random Dude is a blog by P.J. Onori that covers design & technology in the broadest sense possible.

Use Tumblr? If so, you may find Off Franklin useful.

Posts Tagged ‘bitmap’

Click on one of the items below to go to the post

Actionscript 3 Bitmap Segmentor (Source Code Included)

Posted on 22 January, 2008 at 6:00am with 15 comments

For quite some time now, I have been playing with breaking DisplayObjects into a grid to sample pixel data in order to create visualizations. I have spent time with this in both Actionscript and in Processing (see project). For Actionscript in particular though, I wanted to make the process cleaner and easier to implement. What has resulted is a slightly tangential project which ultimately makes sampling pixel data easier while offering a whole separate set of features. In its simplest form, the BitmapSegmentor allows you to take a DisplayObject’s bitmapData and break it into a grid of individual segments. These segments can then be used for various purposes, including pixel data sampling.
Read the rest of this post…


AS3 Layout Organizers Applied to Video

Posted on 13 September, 2007 at 9:42am with 7 comments

Last week, I showcased an idea of Flash layout organizers (source code is coming), that acts loosely the same as Flex containers. I have already started to use this basic idea and it has so far worked out very nicely for me. After posting my little experiment, I instantly thought of mashing up the layout organizer experiment with the Flash video sampler experiment I did a couple months back. The current example of bringing the two together is overly simplistic to better give the idea of what is happening, but I can already see tremendous potential for fun with this technique.

You need the Flash Player to view this video.

This technique extensively uses the copyPixels method and the performance is much better than I honestly expected. The current example’s video is broken up into 225 individual boxes, each bitmaps pulling from the video every 40 milliseconds. That is a lot of computations. I wanted to drop this relatively sophomoric example out there to clearly show what this technique does – hopefully this week or next I will be able to have a little more fun with this and push the visual/interactive aspects.