CollisionMask Constructor |
Create a collision mask of the specified size for a combination of the specified frames
from a frameset based on the respective alpha levels of those frames.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public CollisionMask(
Rectangle localBounds,
Frameset frameset,
int[] subFrames,
byte[] alphas
)
Parameters
- localBounds
- Type: System.DrawingRectangle
A rectangle relative to the frame's origin for which the
mask is generated. This is generally generated by determining the rectangle that
encloses all the graphics of all the transformed frames. - frameset
- Type: (Default Namespace)Frameset
Frameset containing all the frames referenced for the creation
of this mask. - subFrames
- Type: SystemInt32
Indexes of the frames to be overlayed before generating the mask. - alphas
- Type: SystemByte
Respective alpha values for the frames in subFrames
See Also