maximum size of a sprite in as3?

前端 未结 5 595
栀梦
栀梦 2021-01-07 13:28

Is there an upper bound to the size of a sprite in as3 / flash 10?

I know bitmapData has limitations...

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-07 13:48

    There are actually a few limitations that I would advice you not to exceed. I'm not 100% sure, but in my tests, you can't BitmapData.draw() any DisplayObject beyond 4079 pixels in width and 4082 in height (actually you can, but they will not be drawn beyond this limits). You can, however, draw BitmapDatas bigger than that.

    I've also found that these values appear to be the "safe" boundaries for the bounding box of any DisplayObject. DisplayObjects bigger than that will most definitely be quite buggy... rendering issues in the edges and interactive glitches all around are very common in such scenarios.

提交回复
热议问题