次の方法で共有


OnProgress method

Called by filter as incremental progress is made during decode.

Syntax

HRESULT retVal = object.OnProgress(pBounds, bComplete);

Parameters

  • pBounds [in]
    Type: RECT

    A pointer to a variable of type RECT that specifies the rectangle where progress was made.

  • bComplete [in]
    Type: BOOL

    A BOOL that specifies TRUE if this is the final pass for this rectangle, or FALSE otherwise.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Use only if IMGDECODE_EVENT_PROGRESS flag was returned in pdwEvents parameter of IImageDecodeEventSink::OnBeginDecode.