IIXC_Page::Histogramm Method

From Tracker Software PDF SDK
Revision as of 02:16, 15 June 2015 by Dsbot (Talk | contribs) (Automatic page editing by robot)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Histogramm method returns histogram(s) for one or more color channels for the entire page or a selected rectangular area.

Syntax

HRESULT Histogramm([in, out]  ULONG*  nRed,
                   [in, out]  ULONG*  nGreen,
                   [in, out]  ULONG*  nBlue,
                   [in, out]  ULONG*  nGray,
                   [in]       RECT*   stRect);

Parameters

nRed
[in, out] Pointer to an array of ULONGs that receives the histogram for the red channel.
nGreen
[in, out] Pointer to an array of ULONGs that receives the histogram for the green channel.
nBlue
[in, out] Pointer to an array of ULONGs that receives the histogram for the blue channel.
nGray
[in, out] Pointer to an array of ULONGs that receives the histogram for the gray channel.
stRect
[in] Pointer to RECT structure which defines the rectangular area for which color histograms will be calculated. If this parameter is NULL, the entire page will be used.

Return Value

Returns S_OK if operation was successful or error code in other cases.

Remarks

All UINT arrays passed to the function must have at least 256 items. If one or more histograms isn't needed, the corresponding parameter can be set to NULL.

See Also

IIXC_Page