ImageGear .NET v25.2 - Updated
ImGearPixelateFillParams Class
Members  Example 




ImageGear.Processing.Advanced Assembly > ImageGear.Processing Namespace : ImGearPixelateFillParams Class
Describes fill characteristics of the Pixelate operation.
Object Model
ImGearPixelateFillParams Class
Syntax
'Declaration
 
Public Class ImGearPixelateFillParams 
'Usage
 
Dim instance As ImGearPixelateFillParams
public class ImGearPixelateFillParams 
public __gc class ImGearPixelateFillParams 
public ref class ImGearPixelateFillParams 
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);
' Pixelate an image.

' Parameter classes for Pixelate function.
Dim igPixelateBorderParams As New ImGearPixelateBorderParams()
Dim igPixelateCellParams As New ImGearPixelateCellParams()
Dim igPixelateFillParams As New ImGearPixelateFillParams()

Dim igPixel As ImGearPixel = 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 = CSng(1)
' Border parameters
igPixelateBorderParams.Width = 0
igPixelateBorderParams.Height = 0
igPixelateBorderParams.Color = igPixel
igPixelateBorderParams.Opacity = CSng(1)

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

System.Object
   ImageGear.Processing.ImGearPixelateFillParams

See Also

Reference

ImGearPixelateFillParams Members
ImageGear.Processing Namespace
Pixelate Method

Is this page helpful?
Yes No
Thanks for your feedback.