The method applies a general table filter to an image page or its specified rectangular area.
HRESULT TableFilter([in] RECT* pRect, [in, optional] UCHAR* B_Table, [in, optional] UCHAR* G_Table, [in, optional] UCHAR* R_Table);
- [in] Pointer to the RECT structure which defines the rectangular area where the function should be applied. If this parameter is NULL, the entire page will be processed.
- [in, optional] Specifies the blue table.
- [in, optional] Specifies the green table.
- [in, optional] Specifies the red table.
Returns S_OK if operation was successful or error code in other cases.
Each table should have the size of 256.
For each pixel in the image its color value is changed according values passed through the tables. i.e. pixel's color value is (5, 120, 17). New color for this pixel will be the color with the component values taken from the tables with indexes (5, 120, 17). So the final color value for the selected pixel will be: (B_Table, G_Table, R_Table).