ImageGear Professional v18.2 > API Reference Guide > Effects Component API Reference > Effects Component Objects > IGEffectsCtl Control > IGEffectsCtl Methods > Pixelate Method |
Redraws the image referenced by pPage object using what appear to be very large pixels. It uses imageWidth and imageHeight to specify how many "apparent pixels" you want in the result. InputMode tells ImageGear what to do with the block of pixels it reads in. It lets you to compute the output of each "apparent pixel" as the average, minimum, maximum, or central pixel in the block. Giving the same value to a group of pixels can effectively reduce the image resolution, making it appear you have zoomed in on a smaller image.
When the outputMode is set to IG_RESAMPLE_OUT_CIRCLE the background color surrounding the output circles is provided by IGEffectsCtl.BackColor Property.
This method takes into account the ROI settings of pPage object, that are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.
Pixelate (pPage As IGPage, imageWidth As Long, imageHeight As
Long, inputMode As enumIGResampleInModes, outputMode As
enumIGResampleOutModes, radius As Long)
Name | Description |
---|---|
pPage | Reference to IGPage Object for which to apply the pixelate effect. |
imageWidth | Distance between the new pixels in the horizontal direction. |
imageHeight | Distance between the new pixels in the vertical direction. |
inputMode | Any value of enumIGResampleInModes Enumeration. |
outputMode | Any value of enumIGResampleOutModes Enumeration. |
radius | Radius of the new pixels in pixel values in case if outputMode is set to IG_RESAMPLE_OUT_CIRCLE. |
N/A
8-bit gray level, 9-16-bit gray level, 24, and 32
Ip_Fx