formZ SDK | 4.0 Call Back Reference | File Translator | Structured File Translator | Image Vector Call Back
Description
Reads raw vector data from a file. This function is called to read raw vector data from a file. This function allocates and fills a block of memory (pointer to by the data parameter) with raw vector data from a file. This function can also allocates a block of memory (pointed to by the pview_data parameter) and fill it with the vector file's preview image. This function is provided so that raw vector data can be embedded in other files (i.e. eps can embed raw PICT data as a preview).
Plugin Prototype
fzrt_error_td fz_ffmt_cbak_image_vect_read_raw_data(
fzrt_int | windex, |
ffmt_id, | |
floc, | |
pview_type, | |
fzrt_int * | pview_data_size, |
void ** | pview_data, |
fzrt_int * | data_size, |
void ** | data ) |
Parameters
windex [Input]
The active window.
ffmt_id [Input]
The file format reference id.
floc [Input]
The file to read from.
pview_type [Result, Optional]
The file reference id for the format of the preview image.
pview_data_size [Result, Optional]
The size of the pview_data allocated by this function.
pview_data [Result, Optional]
The raw preview data.
data_size [Result, Optional]
The size of the raw vector data allocated by this function.
data [Result, Optional]
The raw vector data.
Returns
FZRT_NOERR on success. An error otherwise.
Availability
5.0.0.0
Function Set
Defined in