The AddWatermarkImage2 method adds a new image watermark.
HRESULT AddWatermarkImage2(
[ out, string ] BSTR* p_pwsNewWatermarkId,
[ out, string ] BSTR* p_pwsNewLayoutId
);
Parameters:
p_pwsNewWatermarkId,
[out, string] - return new watermark id
p_pwsNewLayoutId
[in, string] - return layout id for the new watermark
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedRemarks:
The newly created watermark contains default settings. Use the watermark id and layout id as parameters for set watermark and layout options functions.
For layout options, see Working with Layout objects.