ImageGear Professional DLL v17.1 for Windows Accusoft
IG_FX_mosaic_tiles
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > FX Functions > IG_FX_mosaic_tiles

Glossary Item Box

Provides a 3D mosaic effect on the hIGear image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_FX_mosaic_tiles(
        HIGEAR hIGear, 
        AT_MOSAIC_FILL_PARAMS* fillParams,  
        AT_MOSAIC_CELL_PARAMS* cellParams,  
        AT_MOSAIC_BORDER_PARAMS* borderParams, 
        AT_MOSAIC_SHADOW_PARAMS* shadowParams, 
        LPAT_RECT lpRect
); 

Arguments:

hIGear Image to which to apply the effect.
fillParams Mosaic fill parameters.
cellParams Mosaic cell parameters.
borderParams Mosaic border parameters.
shadowParams Mosaic shadow parameters.
lpRect Rectangular area to which to apply the effect, or NULL for whole image.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear Professional, except:
Indexed RGB – 1 bpp;
Grayscale – 1 bpp;
Indexed RGB with non-grayscale palette.

Remarks:

AT_MOSAIC_BORDER_PARAMS is a structure that contains the Mosaic border parameters. Border color should have the same color space and channel depths as the image to which the effect is applied.

  Copy Code
struct tagAT_MOSAIC_BORDER_PARAMS
{
        AT_INT Width;
        AT_INT Height;
        AT_INT Irregularity;
        AT_FLOAT Opacity;
        HIGPIXEL hColor;
};
typedef struct tagAT_MOSAIC_BORDER_PARAMS AT_MOSAIC_BORDER_PARAMS;

AT_MOSAIC_FILL_PARAMS is a structure that contains the Mosaic fill parameters. Fill color should have the same color space and channel depths as the image to which the effect is applied.

  Copy Code
struct tagAT_MOSAIC_FILL_PARAMS
{
        AT_FLOAT Opacity;
        HIGPIXEL hColor;
};
typedef struct tagAT_MOSAIC_FILL_PARAMS AT_MOSAIC_FILL_PARAMS;

AT_MOSAIC_SHADOW_PARAMS is a structure that contains the Mosaic shadow parameters.

  Copy Code
struct tagAT_MOSAIC_SHADOW_PARAMS
{
        AT_BOOL Enabled;
        enumCompass Direction;
        AT_FLOAT Threshold;
        AT_BOOL HighResolution;
        AT_FLOAT Intensity;
};
typedef struct tagAT_MOSAIC_SHADOW_PARAMS AT_MOSAIC_SHADOW_PARAMS;

AT_MOSAIC_CELL_PARAMS is a structure that contains the Mosaic cell parameters.

  Copy Code
struct tagAT_MOSAIC_CELL_PARAMS
{
        enumIGMosaicType Type;
        AT_INT Width;
        AT_INT Height;
        AT_INT PolarCenterX;
        AT_INT PolarCenterY;
};
typedef struct tagAT_MOSAIC_CELL_PARAMS AT_MOSAIC_CELL_PARAMS;
©2012. Accusoft Corporation. All Rights Reserved.