Animations.CreatePicturesFromTileSet Method
collapse_all
expand_all
collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]

Visual C++
DPSF API Documentation
Animations
.
.
::
..CreatePicturesFromTileSet Method

Animations Class

gradient

Automatically creates the specified Total Number Of Pictures. All pictures are assumed to have the same width and height, as specified in the First Picture rectangle. Also, the First Picture is assumed to be at the top-left corner of the Tileset.

Pictures are created in left-to-right, top-to-bottom order. The ID of the first Picture created is returned, with each new Picture created incrementing the ID value, so the last Picture created will have an ID of (returned ID + (Total Number Of Pictures - 1)).

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public int CreatePicturesFromTileSet(

 int iTotalNumberOfPictures,

 int iPicturesPerRow,

 Rectangle sFirstPicture

)

Visual Basic

Public Function CreatePicturesFromTileSet (

 iTotalNumberOfPictures As Integer,

 iPicturesPerRow As Integer,

 sFirstPicture As Rectangle

As Integer

Visual C++

public:

int CreatePicturesFromTileSet(

 int iTotalNumberOfPictures,

 int iPicturesPerRow,

 Rectangle sFirstPicture

)

Parameters

iTotalNumberOfPictures

Type: System..::..Int32

The Total Number Of Pictures in the Tileset

iPicturesPerRow

Type: System..::..Int32

How many Pictures are in a row in the texture

sFirstPicture

Type: Rectangle

The Position of the top-left Picture in the Tileset, and the width and height of each Picture in the Tileset

Return Value

Type: Int32

The ID of the first Picture created is returned, with each new Picture created incrementing the ID value, so the last Picture created will have an ID of (returned ID + (Total Number Of Pictures - 1)).

collapse_allSee Also

Animations Class

Animations Members

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com