ImageGear Professional DLL v18.1 for Windows
AT_IGGUI_FX_ADD_NOISE
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > GUI Component API Reference > GUI Component Structures Reference > AT_IGGUI_FX_ADD_NOISE

Glossary Item Box

This structure is used by the IG_gui_fx_add_noise_dlg function to create noise in an image.

Declaration:

  Copy Code
typedef struct tag AT_IGGUI_FX_ADD_NOISE
{
        DWORD cbSize;
        UINT uFlags;
        HIGEAR hIGear;
        HWND hWnd;
        LPCHAR lpszTitle;
        AT_RECT rc;
        WORD nType;
        DOUBLE dblStrength;
        INT nHitRate;
        DOUBLE dblSigma;
        AT_MODE nColorChannel;
        AT_ERRCOUNT nErrCount;
        LPFNIGGUI_FX_UPDATE lpfnUpdateProc;
}AT_IGGUI_FX_ADD_NOISE;

Members:

Name Type Description
cbSize DWORD Specifies the length, in bytes, of the structure.
uFlags UINT A set of bit flags you can use to initialize the dialog box.
hIGear HIGEAR A handle of an image.
hWnd HWND A handle of the window to update.
lpszTitle LPCHAR A dialog title.
rc AT_RECT An AT_RECT struct specifying the rectangular portion of image to be processed.
nType WORD An IG_NOISE constant such as IG_NOISE_LINEAR, IG_NOISE_GAUSSIAN.
dblStrength DOUBLE From 0.0 to 127.0, specifying the degree of noise alteration to introduce into affected pixels.
nHitRate INT Set = 1 to add noise to all pixels, > 1 to skip pixels, only adding noise to some. Larger values cause fewer pixels to be affected. Valid range is from 1 to 500.
dblSigma DOUBLE Used with IG_NOISE_GAUSSIAN; the valid range is from 0.1 to 25.0.
nColorChannel AT_MODE An IG_COLOR_COMP_ constant. See file accucnst.h for a complete list.
nErrCount AT_ERRCOUNT The number of ImageGear errors that occurred during this function call.
lpfnUpdateProc LPFNIGGUI_FX_UPDATE A pointer to the function that is called when the 'Apply' button is clicked.

©2014. Accusoft Corporation. All Rights Reserved.