Scrolling Game Development Kit 2 Help
Scrolling Game Development Kit 2 Help
Scrolling Game Development Kit Coding Reference
Frame Structure
Frame Constructor
Frame Constructor (Display.TextureRef, Int16, Rectangle)
Frame Constructor (Display.TextureRef, Int16, PointF[], Rectangle)
Frame Constructor (Display.TextureRef, Int16, Rectangle, Int32)
Frame Constructor (Display.TextureRef, Int16, PointF[], Rectangle, Int32)
Frame Constructor (Display
TextureRef, Int16, Rectangle, Int32)
Creates a new frame definition based on a graphic sheet, cell index, source rectangle and color modulation.
Namespace:
(Default Namespace)
Assembly:
Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
Copy
public
Frame
(
Display
TextureRef
texture
,
short
cell
,
Rectangle
srcRect
,
int
color
)
Parameters
texture
Type:
(Default Namespace)
Display
TextureRef
Refers to an object that provides a hardware copy of the graphic sheet on which this frame is based.
cell
Type:
System
Int16
Provides a value for this frame's
CellIndex
property.
srcRect
Type:
System.Drawing
Rectangle
Provides this frame's
SourceRect
.
color
Type:
System
Int32
Provides this frame's
Color
.
Remarks
This constructor provides a shortcut for creating frames without transformations.
See Also
Reference
Frame Structure
Frame Overload
(Default Namespace) Namespace
Send comments on this topic to
bluemonkmn@users.sourceforge.net