LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
OffsetRegion Method
See Also 
Leadtools Namespace > RasterImage Class : OffsetRegion Method



rowOffset
The number of rows to move the region.
colOffset
The number of columns to move the region.
rowOffset
The number of rows to move the region.
colOffset
The number of columns to move the region.
Moves the image region by the specified number of rows and columns. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Sub OffsetRegion( _
   ByVal rowOffset As Integer, _
   ByVal colOffset As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim rowOffset As Integer
Dim colOffset As Integer
 
instance.OffsetRegion(rowOffset, colOffset)
C# 
public void OffsetRegion( 
   int rowOffset,
   int colOffset
)
C++/CLI 
public:
void OffsetRegion( 
   int rowOffset,
   int colOffset
) 

Parameters

rowOffset
The number of rows to move the region.
colOffset
The number of columns to move the region.

Example

For an example, refer to FlipRegion.

Remarks

The move does not affect the pixels in the region.

This method uses image coordinates to specify the pixel. Therefore, you must account for the view perspective of the image.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also