Pointillist method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short Pointillist(ILEADRaster * pRaster, long lSize, OLE_COLOR crColor, long lFlags);

Overview

Refer to Applying Artistic Effects.

Remarks

(Raster Pro and above only) Converts image colors into randomly placed dots to create a pointillist painting, and uses the background color to fill the area between dots.

Pointillism is a painting technique where the image is composed of tiny, separate dots of primary color. Non primary colors are created by placing primary colors beside each other and allowing the "mixing" to be performed when the image is viewed.

As an example, if you use the following figure:

image\diffuseglowbefore.gif

And you call Pointillist using the following values:

Parameter

Value

lSize

4

crColor

Black

lFlags

POINTILLIST_COLOR | POINTILLIST_STICKER

The following figure results:

image\HummingbirdSticker.gif

Use the RomanMosaic method to divide the bitmap into rectangular or arc-shaped cells and then fill each cell with a color chosen randomly from the colors of each tile’s pixels.

Use the Mosaic method to impose a mosaic effect on a bitmap by dividing the bitmap into tiles of a specified size and changing the color of all pixels in each tile to the average color of pixels within the tile.

Use the Pixelate method to divide the bitmap into rectangular or arc-shaped cells and then recreate the image by filling those cells with the minimum, maximum, or average pixel value, depending upon the effect that was selected.

Use the MosaicTiles method to make an image look like a mosaic made from tiles. Tiles can be rectangular or arc-shaped, depending upon the coordinate system used to draw the tiles.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

If the bitmap has a region, this method works only on the region. If the bitmap does not have a region, this method works on the entire bitmap.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

GrayScale method, GrayScaleExt method, AutoColorLevel method, ColorLevel method, Correlation method, GrayScaleToDuotone method, GrayScaleToMultitone method, HolesRemovalBitmapRgn method, SelectiveColor method, Skeleton method, HalfTone method, Mosaic method, Pixelate method, MosaicTiles method, RomanMosaic method, Cubism method, DiceEffect method, GlassEffect method, PuzzleEffect method, RingEffect method, Canvas method, BricksTexture method

Topics:

Raster Images: Doing Color Expansion or Reduction

 

Raster Images: Artistic Effects

 

Raster Images: Filtering Images