class Frame
package aseprite
Holds information regarding a single frame of the animation
Constructor
new(index:Int, ?frameBitmapData:BitmapData, ?nineSlices:NineSliceSlices, ?renderWidth:Int, ?renderHeight:Int, ?sprite:Aseprite, ?frame:Frame)
Frame constructor
Parameters:
index | |
---|---|
frameBitmapData | |
nineSlices | |
renderWidth | |
renderHeight | |
sprite | |
null | frame |
Variables
Methods
copy(?slice:Slice, ?spriteWidth:Int, ?spriteHeight:Int):Frame
Creates a copy of the frame reusing the resources
Parameters:
slicel | Slice to cut from the original sprite |
---|---|
spriteWidth | Width of the resulting frame |
spriteHeight | Height of the resulting frame |
resize(newWidth:Int, newHeight:Int):Void
Resize the frame
Parameters:
newWidth | New width of the frame |
---|---|
newHeight | New height of the frame |