Class WmfRegion
Class WmfRegion
Namespace: Aspose.Imaging.FileFormats.Wmf.Objects
Assembly: Aspose.Imaging.dll (25.7.0)
The Region Object defines a potentially non-rectilinear shape defined byan array of scanlines.
public class WmfRegion : MetaObject
{
private const int RECT_NUM = 4;
public WmfRegion(int[] bounds)
{
if (bounds.Length != RECT_NUM)
throw new ArgumentException("Bounds array should contain exactly " + RECT_NUM + " elements.");
_rect = bounds;
}
private int[] _rect;
public RectangleF BoundingBox
{
get
{
return new RectangleF(_rect[0], _rect[1], _rect[2], _rect[3]);
}
}
}
Inheritance
object ← MetaObject ← WmfRegion
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
WmfRegion()
public WmfRegion()
{
this.xMin = 0;
this.yMin = 0;
this.xMax = 0;
this.yMax = 0;
}
Properties
AScans
Gets or sets a scans.
public WmfScanObject[] AScans
{
get;
set;
}
Property Value
BoundingRectangle
Gets or sets the bounding rectangle.
public Rectangle BindingRectangle
{
get;
set;
}
Property Value
MaxScan
Gets or sets the maximum scan.
public short MaxScan
{
get;
set;
}
Property Value
NextInChain
Gets or sets the next in chain.
public short NextInChain
{
get;
set;
}
Property Value
ObjectCount
Gets or sets the object count.
public int ObjectCount
{
get;
set;
}
Property Value
ObjectType
Gets or sets the type of the object.
public short ObjectType
{
get;
set;
}
Property Value
RegionSize
Gets or sets the size of the region.
public short RegionSize
{
get;
set;
}
Property Value
ScanCount
Gets or sets the scan count.
public short ScanCount
{
get;
set;
}