![]() I hope that it will provide a few moments of fun, if not a practical use (I’m thinking image gallery transitions or music visualisations). ![]() I’ve implemented this technique in the Glitchmap class, which you can download and play with at the bottom of this post. It is also possible to corrupt other image formats (png, gif etc) in the same way, by first passing the image ByteArray through a JPEGEncoder. The result is an interesting glitch pattern, a bit like those which were accidentally created when my webcam drivers lost the plot. Because of the way in which JPEGs work, the image will still display but the corrupt bytes will mangle the output to varying degrees, depending on how many bytes have been corrupted. Corrupt / alter a byte (or several bytes) in the ByteArray of a JPEG and then load this back into a DisplayObject using Loader.loadBytes(). At first, it seemed the best approach might be to use the graphics API or Bitmap effects, but why imitate when you can have the real thing. During a recent project I needed to find a way of simulating digital interference on an image / video stream.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |