#graphic-flex-image-effects-07-source-aether-textures-patterns-GraphicsDataPattern.ax [swf] [flash] flex
package aether.textures.patterns { import aether.textures.ITexture; import flash.display.BitmapData; import flash.display.IGraphicsData; import flash.display.Shape; public class @ax-graphic-flex-image-effects-07-source-aether-textures-patterns-GraphicsDataPattern implements ITexture { private var _data:Vector.<IGraphicsData>; public function @ax-graphic-flex-image-effects-07-source-aether-textures-patterns-GraphicsDataPattern(data:Vector.<IGraphicsData>) { _data = data; } public function draw():BitmapData { var shape:Shape = new Shape(); shape.graphics.drawGraphicsData(_data); var bitmap:BitmapData = new BitmapData(shape.width, shape.height, true, 0x00000000); bitmap.draw(shape); return bitmap; } } }
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.