Pixelate Transform

Changes an image into squares whose colors are the average of the colors of the corresponding pixels in the image. If you use one input image, the square dimension evolves from one pixel when the Progress property is 0 to MaxSquare pixels when Progress is 1. If you use two input images, the square dimension ranges from one pixel when Progress is 0 to MaxSquare pixels when Progress is 0.5, while averaging the pixels of the first image, and from MaxSquare pixels back to one pixel when Progress is 1, while averaging the pixels of the second image.

Note  To use this transform, you need to have Microsoft® DirectX® Media 6, Microsoft Internet Explorer 5, Microsoft Windows® 98 Second Edition, or Windows 2000 installed.

Transform Specifications

The following table contains the information you need in order to use this transform in C++ and script.

Class identifier (CLSID) CLSID_Pixelate
Globally unique identifier (GUID) 4CCEA634-FBE0-11d1-906A-00C04FD9189D
Programmatic identifier (ProgId) DXImageTransform.Microsoft.Pixelate
Category identifier (CATID) CATID_DXImageTransform
Custom interfaces IDXPixelate
Supported interfaces IDXEffect
Inputs One required (two maximum) of type IDXSurface.
Output IDXSurface

Custom Properties

The following table lists the custom properties that control the transform output.

Property Type Default Description
MaxSquare integer 50 Maximum number of pixels per square. Possible values are from 2 through 50.

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.