Click or drag to resize
Frame Constructor (DisplayTextureRef, 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#
public Frame(
	DisplayTextureRef texture,
	short cell,
	Rectangle srcRect,
	int color
)

Parameters

texture
Type: (Default Namespace)DisplayTextureRef
Refers to an object that provides a hardware copy of the graphic sheet on which this frame is based.
cell
Type: SystemInt16
Provides a value for this frame's CellIndex property.
srcRect
Type: System.DrawingRectangle
Provides this frame's SourceRect.
color
Type: SystemInt32
Provides this frame's Color.
Remarks
This constructor provides a shortcut for creating frames without transformations.
See Also