RomanMosaic method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short RomanMosaic(ILEADRaster * pRaster, long lTileWidth, long lTileHeight, long lBorder, ShadowDirectionConstants ShadowAngle, long lShadowThresh, OLE_COLOR crColor, long lFlags);

Overview

Refer to Applying Artistic Effects.

Remarks

(Raster Pro and above only) Segments the image into rectangular or rounded rectangular tiles and fills them with a color chosen randomly from the colors of the tile’s pixels.

Use this method to divide the bitmap into rectangular or rounded rectangular tiles and then fill each tile with a color chosen randomly from the colors of each tile’s pixels.

As an example, if you use the following figure:

image\diffuseglowbefore.gif

And you call the RomanMosaic method using the following values:

Parameter

Value

lTileWidth

2

lTileHeight

2

lBorder

20

ShadowAngle

na

lShadowThresh

na

crColor

Black

lFlags

RMN_BOTH | RMN_FLAT

The following figure results:

image\HummingbirdRomanMosaic.gif

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.

Use the Pointillist method to convert image colors into randomly placed dots to create a pointillist painting, using a background color to fill the area between dots.

This method can process the whole image or a region of the image. If a bitmap has a region, the effect is applied only to the region.

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

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:

AddNoise method, Emboss method, Mosaic method, MotionBlur method, Oilify method, Posterize method, RemoveRedeye method, Solarize method, Underlay method, Bending method, Cylindrical method, FreeHandShear method, FreeHandWave method, Impressionist method, Polar method, Punch method, RadialBlur method, RadWave method, Ripple method, Spherize method, Swirl method, Wave method, Wind method, ZoomBlur method, ZoomWave method, BumpMap method, Cubism method, DrawStar method, Dry method, FreePlaneBend method, FreeRadBend method, GlassEffect method, GlowFilter method, LensFlare method, Light method, Ocean method, PlaneBend method, Plane method, SampleTarget method, Tunnel method, Pixelate method, MosaicTiles method, Pointillist method

Topics:

Raster Images: Doing Geometric Transformations.