ImageGear .NET - Updated July 5, 2018
ImGearPixelateBorderParams Class
Members  Example 




ImageGear24.Processing.Advanced Assembly > ImageGear.Processing Namespace : ImGearPixelateBorderParams Class
Describes border characteristics of the Pixelate operation.
Object Model
ImGearPixelateBorderParams Class
Syntax
'Declaration
 
Public Class ImGearPixelateBorderParams 
 
'Usage
 
Dim instance As ImGearPixelateBorderParams
Example
// Pixelate an image.

// Parameter classes for Pixelate method.
ImGearPixelateBorderParams igPixelateBorderParams = new ImGearPixelateBorderParams();
ImGearPixelateCellParams igPixelateCellParams = new ImGearPixelateCellParams();
ImGearPixelateFillParams igPixelateFillParams = new ImGearPixelateFillParams();

ImGearPixel igPixel = igRasterPage.DIB.GetPixelCopy(0, 0);

// cell parameters
igPixelateCellParams.Type = ImGearPixelateCellType.Rectangle;
igPixelateCellParams.Width = 8;
igPixelateCellParams.Height = 8;

// fill parameters
igPixelateFillParams.FillMethod = ImGearPixelateFillMethod.Average;
igPixelateFillParams.Color = igPixel;
igPixelateFillParams.Opacity = (float)1.00;
// Border parameters
igPixelateBorderParams.Width = 0;
igPixelateBorderParams.Height = 0;
igPixelateBorderParams.Color = igPixel;
igPixelateBorderParams.Opacity = (float)1.00;

ImGearEffects.Pixelate(igRasterPage,
        igPixelateFillParams,
        igPixelateCellParams,
        igPixelateBorderParams);
Inheritance Hierarchy

System.Object
   ImageGear.Processing.ImGearPixelateBorderParams

See Also

Reference

ImGearPixelateBorderParams Members
ImageGear.Processing Namespace
Pixelate Method