Converts the IInkDisp object to the specified InkPersistenceFormat, saves the ink by using the specified InkPersistenceCompressionMode, and returns the binary data in an array of bytes.
HRESULT Save ( [in,optional, defaultvalue(IPF_InkSerializedFormat)] InkPersistenceFormat persistenceFormat, [in,optional, defaultvalue(IPCM_Default)] InkPersistenceCompressionMode compressionMode, [out, retval] VARIANT *Data );
[in] One of the InkPersistenceFormat values that indicates the format of the persisted ink.
[in] One of the InkPersistenceCompressionMode values, that specifies the compression mode of the persisted ink.
[out, retval] Returns the byte array that contains the persisted ink.
For more information about the VARIANT structure, see Using the Automation Library with Windows Mobile Ink.
Success.
A parameter contained an invalid pointer.
An exception occurred inside the method.
Invalid compression mode.
Cannot allocate byte array.
Occurs if you attempt to save an empty Ink object in GIF format.
Attempting to save an empty IInkDisp object in GIF format generates an error.