Atalasoft dotImage Send comments on this topic.
MosaicCommand Class
See Also  Members   Example 
Atalasoft.dotImage Assembly > Atalasoft.Imaging.ImageProcessing.Effects Namespace : MosaicCommand Class




Generate a mosaic (large pixel) image.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class MosaicCommand 
   Inherits ImageRegionCommand
Visual Basic (Usage)Copy Code
Dim instance As MosaicCommand
C# 
[SerializableAttribute()]
public class MosaicCommand : ImageRegionCommand 
Managed Extensions for C++ 
[SerializableAttribute()]
public __gc class MosaicCommand : public ImageRegionCommand 
C++/CLI 
[SerializableAttribute()]
public ref class MosaicCommand : public ImageRegionCommand 

Example

The following example applies MosaicCommand to a region of an image.
C#Copy Code
// 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);
Visual BasicCopy Code
' 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)

Remarks

This method requires a 24 or 32 bit image.

Inheritance Hierarchy

System.Object
   Atalasoft.Imaging.ImageProcessing.ImageCommand
      Atalasoft.Imaging.ImageProcessing.ImageRegionCommand
         Atalasoft.Imaging.ImageProcessing.Effects.MosaicCommand

Requirements

Namespace: Atalasoft.Imaging.ImageProcessing.Effects

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Atalasoft.dotImage (in Atalasoft.dotImage.dll)

See Also