formZ SDK | 4.0 Call Back Reference | File Translator | Structured File Translator | Image Bitmap Call Back

fz_ffmt_cbak_image_bmap_write_image_scanline_byte

Description

Writes a single scanline of an image to a bitmap file. The rgb and alpha data is represented by unsigned bytes.

Plugin Prototype

fzrt_error_td fz_ffmt_cbak_image_bmap_write_image_scanline_byte(

fzrt_int

windex,

fz_ffmt_ref_td

ffmt_id,

void *

data,

fz_rgb_uchar_td *

pixels,

unsigned char *

alpha,

fzrt_int

row )

Parameters

windex [Input]

project window index

ffmt_id [Input]

The file format reference id.

data [Input]

A pointer to translator defined data.

pixels [Input]

The scanline pixels to export.

alpha [Input]

The scanline alpha channel to export. This will be NULL if no alpha is to be exported.

row [Input]

Which scanline.

Returns

FZRT_NOERR on success. An error otherwise.

Availability

5.0.0.0

Function Set

fz_ffmt_cbak_image_fset


Defined in

fz_ffmt_api.h