![]() | InDesign SDK 20.5 |
#include <IImageWriteFormat.h>

Public Types | |
| enum | { kOptionSetImage = 1 } |
Public Member Functions | |
| virtual bool16 | SetImageAttributes (IImageAttributes *iImageAttributes)=0 |
| virtual bool16 | Open (IPMStream *iPMStream)=0 |
| virtual bool16 | Close ()=0 |
| virtual bool16 | SetFormatOption (uint32 formatOption, uint32 formatData)=0 |
| virtual bool16 | WriteData (IImageStream *iImageStream)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface defining the mechanism for writing an image to a stream.
Image format writing sequence:
First, a client should call Open to begin a write session. It should then call SetFormatOption (if required), SetImageAttributes, and WriteData. This sequence of calls to SetFormatOption, SetImageAttributes, and WriteData may be called as necessary if multiple images per file are supported. Close should then be called to terminate the write session.
| pure virtual |
Terminates a write session started by a prior call to Open.
Implemented in CImageWriteFormat.
| pure virtual |
Initializes a writer for a write session to the specified stream.
| iPMStream | IN The stream to write to |
Implemented in CImageWriteFormat.
| pure virtual |
Sets an additional option for the image write. Only option supported at this point is whether to write high res (kPMHighResImage) or low res (kPMLowResImage) image.
| formatOption | IN The selector for the option to set |
| formatData | IN The data for the option |
Implemented in CImageWriteFormat.
| pure virtual |
Sets the image attributes to use when writing the image. Unlike reading, image attributes are required before writing the image data.
IMPORTANT: If the format supports more than one image per file, then the attributes set are those for the current image (via the SetFormatOption call).
| iImageAttributes | IN The image attributes to use for the write |
Implemented in CImageWriteFormat.
| pure virtual |
Reads source data from the given IImageStream and writes to the output stream.
Note: The format may read the data in any row, plane, or layer order. Also, Because the format is driving the interaction, it is responsible for posting the progress bar.
| iImageStream | IN The source input stream |
Implemented in CImageWriteFormat.