EncodeMMRImage

#include "BITIFF.H"

 

BOOL CALLBACK EncodeMMRImage(                     int   nFile,
UINT           wWidth,
UINT           wHeight,
DWORD      dwCompression,
LONG          lParam,
FILLPROC  lpLineFn)

Description

Encodes a monochrome image into an MMR file. The raw image data must be passed to the function through the user defined callback function line by line. The file pointer must be positioned before calling this function. It must point to the location where to put the first code byte in the file.

Parameters

int

nFile

Image file handle.

UINT

wWidth

Width of the image in pixels.

UINT

wHeight

Height of the image in pixels.

DWORD

dwCompression

Compression type.

int

nFillOrder

The byte fill order.

UINT

wByteOrder

The byte order.

LONG

lParam

User defined info. It is passed to the callback function as a third parameter unchanged.

FILLPROC

lpLineFn

Callback function that will pass the raw DIB lines to the function.

Return values

TRUE on success, FALSE if failed.

Programming notes

The only compression type is supported in this version is IBMMMR.

Requirements

Header :     Declared in BiTiff.h; include BiTiff.h.

Library :    Use BiTiff.lib.

DLLs :       BiTiff.dll.

References to related functions

See DecodeMMRImage().