FLASH9宫切图ScaleBitmap

ScaleBitmap : 9-slice bitmap class by Didier Brun

Hi everybody,

I have just finished a simple class which allows you to resize dynamically any Bitmap (just like the MovieClip.scale9Grid feature).

This project is OPEN SOURCE under RPL License.
2009-02-19 v1.2.2 scaleBitmap_v122.zip

The zip file contains :

  • the v1.2.2 ScaleBitmap class
  • a Flash CS3 demo file
  • a demo PNG Bitmap file

Some features :

  • dynamically set the scale9Grid parameter
  • use setSize() method
  • get the originalBitmapData instance
  • ScaleBitmap extends flash.display.Bitmap

Don’t hesitate to post any comments/bugs :)

NEW

Alexandre Legout has contributed to this v1.2 ScaleBitmap which introduce these
new features :

  • bitmapData setter
  • redrawing scale9Grid optimization
  • null scale9Grid capability (restore the default Bitmap class behaviour)

Thanks Lalex :)

原文地址:http://www.bytearray.org/?p=118

 

Leave a Reply

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!:
 

无觅相关文章插件,快速提升流量