new (bitmapData:BitmapData, ?rects:Array<Rectangle>)
read onlybitmapData:BitmapData
addRect (rect:Rectangle):Int
getRect (id:Int):Rectangle