Swap Method (IndexBitmap)
In This Topic
Swaps a range of elements from an IndexBitmap starting at the specified source index with another IndexBitmap starting at the specified target index. The length and the indexes are specified as 32-bit integers.
Syntax
'Declaration
Public Shared Sub Swap( _
ByVal As IndexBitmap, _
ByVal As Integer, _
ByVal As IndexBitmap, _
ByVal As Integer, _
ByVal As Integer _
)
'Usage
Dim sourceBitmap As IndexBitmap
Dim fromIndex As Integer
Dim targetBitmap As IndexBitmap
Dim toIndex As Integer
Dim count As Integer
IndexBitmap.Swap(sourceBitmap, fromIndex, targetBitmap, toIndex, count)
public static void Swap(
IndexBitmap ,
int ,
IndexBitmap ,
int ,
int
)
Parameters
- sourceBitmap
- The IndexBitmap that contains the data to swap.
- fromIndex
- A 32-bit integer that represents the index in the source at which swapping begins.
- targetBitmap
- The IndexBitmap that receives the data.
- toIndex
- count
- A 32-bit integer that represents the number of elements to swap.
See Also