What is it?

The Graffiti AS3 Bitmap Drawing Library is designed for ActionScript developers to easily integrate drawing functionality into a Flash, Flex or Air project. It is free to use and modify for noncommercial projects.

Features

  • You choose the size of the Drawing Canvas.
  • Built in zoom functionality including ability to drag an obscured canvas with the mouse.
  • Add a Vector or Bitmap image above or below the drawing area.
  • Keep a drawing history allowing undo and redo.
  • Brush Tool with 7 different Brush shapes.
  • Brush Tool supports blurring. (NEW IN 1.2)
  • Tools have support for transparency. (NEW IN 1.2)
  • Line Tool with 3 types of lines, SOLID, DAHSED and DOTTED
  • Shape Tool with RECTANGLE, SQUARE, OVAL and CIRCLE
  • Flood Fill drawing
  • Get color value for a point on the drawing.
  • Easily retrieve drawing to use with your favorite image encoder.

The Graffiti Library version 1.2 is built to work with Flash Player 10 / AIR 1.5. Version 1.1 can still be used with Flash Player 9 or greater.

Version 1.2 introduces some changes to the API from 1.1. Check out the release notes for more information.

Examples

Graffiti Library Example - Simaple Drawing Application using version 1.2

Feedback

Please send any suggestions or bugs you find so I can make this library better.