RegionOfInterest Class |
Namespace: Atalasoft.Imaging.ImageProcessing
The RegionOfInterest type exposes the following members.
Name | Description | |
---|---|---|
RegionOfInterest(Rectangle) | Initializes a new instance of %RegionOfInterest% specifying a simple rectangle to use as the region.
| |
RegionOfInterest(Region) | Initializes a new instance of %RegionOfInterest% specifying a .NET Region object to use as the region.
| |
RegionOfInterest(SerializationInfo, StreamingContext) | Initializes a new instance of %RegionOfInterest%. |
Name | Description | |
---|---|---|
Region | Gets or sets the System.Drawing.Region used to specify the portion of an image to
process. | |
SmoothingLevel | Gets or sets the smoothing level of the region. |
Name | Description | |
---|---|---|
Equals |
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.) | |
GetObjectData |
Populates a SerializationInfo with the data needed to serialize the target object.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsSimpleRegion | Returns true if the Region is a simple rectangle. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
// Load the image to work with. AtalaImage image = new AtalaImage(@"D:\Test Images\1save.jpg"); // Apply a mosaic effect to the middle of the image. Rectangle rc = new Rectangle(20, 20, image.Width - 40, image.Height - 40); MosaicCommand mos = new MosaicCommand(10); mos.RegionOfInterest = new RegionOfInterest(rc); mos.ApplyToImage(image);
' Load the image to work with. Dim image As AtalaImage = New AtalaImage("D:\Test Images\1save.jpg") ' Apply a mosaic effect to the middle of the image. Dim rc As Rectangle = New Rectangle(20,20,image.Width - 40,image.Height - 40) Dim mos As MosaicCommand = New MosaicCommand(10) mos.RegionOfInterest = New RegionOfInterest(rc) mos.ApplyToImage(image)