Changes an image into squares whose colors are the average of the colors of the corresponding pixels in the image. If there is only one input image, the square dimension increases from one pixel to MaxSquare pixels as Progress goes from 0 to 1. If there are two input images, the square dimension increases from one pixel to MaxSquare pixels as Progress goes from 0 to 0.5, while the transform averages the pixels of the first image. Then as Progress goes from 0.5 to 1, the square dimension decreases back down to one pixel, while the transform averages the pixels of the second image.
Note To use this transform, you need to have Microsoft® DirectX® Media 6, Microsoft Internet Explorer 5, the Microsoft Windows® 98 OEM Service Release (OSR), or Windows 2000 installed.
Transform Specifications
The following table contains the information you need to use this transform in script.
Globally unique identifier (GUID) | 4CCEA634-FBE0-11d1-906A-00C04FD9189D |
---|---|
Programmatic identifier (ProgId) | DXImageTransform.Microsoft.Pixelate |
Inputs | One input image is required. A second input is optional. With one input, the output changes from the original image to a pixelated version of the same image. With two inputs, the first image turns into the second image, and the maximum degree of pixelation occurs at Progress = 0.5. |
Transform type | Transition |
Transform Properties
The following table lists the transform properties that control the appearance of the output.
Property Name | Default | Description |
---|---|---|
MaxSquare | 50 | Maximum number of pixels per square. Valid values range from 2 to 50. |