SaveImageToStream

Image handling

Description

This function is only available in the Delphi editions of the library. Use this function to save the selected image to a stream. Only certain image types can be saved, see the SaveImageToFile function for further information.

Syntax

Delphi

function TPDFlib.SaveImageToStream(OutStream: TStream): Integer;

ActiveX

Function PDFlib::SaveImageToStream(OutStream As Long) As Long

Parameters

OutStreamThe image data will be written into this Delphi TStream object

Return values

0The image data could not be saved. Either an image was not selected, or the image data was of an unsupported type.
1The image data was saved to the stream successfully