Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
HasRegion Property
See Also 
Leadtools Namespace > RasterImage Class : HasRegion Property




Determines whether this RasterImage has a region.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property HasRegion As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Boolean
 
value = instance.HasRegion
C# 
public bool HasRegion {get;}
Managed Extensions for C++ 
public: __property bool get_HasRegion();
C++/CLI 
public:
property bool HasRegion {
   bool get();
}

Return Value

true if this RasterImage has a region, otherwise; false.

Remarks

When an image has a region, the LEADTOOLS methods that modify the pixel values (for example PosterizeCommand) act on the region, rather than the whole image. In addition, the LEADTOOLS methods that flip, reverse, rotate, shear, or resize an image also transform the region to match the image. For example, if you were to shear the image that had a rectangular region, the region would become a parallelogram.

To remove an image region, use MakeRegionEmpty.

For more information, refer to Working with the Existing Region.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also