IIXC_Page::CopyChannel Method

From PDF XChange PDF SDK
Jump to: navigation, search

The CopyChannel method copies specified color channel information from one page to another.

Syntax

HRESULT CopyChannel([in]  IXC_Channel  nDstChannel,
                    [in]  IIXC_Page*   pSrcFrom,
                    [in]  IXC_Channel  nSrcChannel,
                    [in]  RECT*        stRect,
                    [in]  LONG         nSX,
                    [in]  LONG         nSY);

Parameters

nDstChannel
[in] Specifies the Color Channel of the page into which data will be copied.
pSrcFrom
[in] Specifies the source IIXC_Page from which data will be copied.
nSrcChannel
[in] Specifies the color channel of the pSrcFrom from which data will copied.
stRect
[in] Pointer to RECT which defines the rectangular area on the page where date should be copied. If this parameter is NULL, entire page will be used.
nSX
[in] Specifies the x-coordinate, in pixels, on the upper-left corner of the source rectangle.
nSY
[in] Specifies the y-coordinate, in pixels, of the upper-left corner of the source rectangle.

Return Value

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

See Also

IIXC_Page