SaveTiffToMemory  Method

Description         Saves a device independent bitmap to the memory block. If hMem parameter is a valid TIFF file in the memory, the method appends the image to the TIFF, otherwise creates a new TIFF image in the memory.

Syntax                 RetVal = [BITIFF.]SaveTiffToMemory hMem hDib CompMode FillOrder

Returns               RetVal                    LONGLONG Handle to the memory block or 0.

Remarks             hMem                     LONGLONG The destination memory handle or 0.

                            hDib                       LONGLONG Device independent bitmap to save.

                            Compression          Integer             Method of compression:

TCOMP_NOCOMP = 201  Uncompressed image.

TCOMP_PACKBITS = 202  Byte-oriented run-length coding.

TCOMP_LZW = 203          Lempel-Ziv & Welch coding.

TCOMP_LZW_DIFF = 204   Differential Lempel-Ziv & Welch coding.

TCOMP_CCITTG2 = 205       CCITT Group 3   1dimensional NO EOL coding.

TCOMP_CCITTG31D = 206  CCITT Group 3   1dimensional coding.

TCOMP_CCITTG32D = 207  CCITT Group 3   2dimensional coding.

TCOMP_CCITTG4 = 208       CCITT Group 4   coding.

TCOMP_JPEG = 209         JPEG coding.

                     FillOrder                Long                Fill Order

                                                          tiffoNormal    Normal bit order.

                                                          tiffoReverse   reverse bit order.

 

See Also          SaveDIBInTiffFormat Method, LoadTiffFromMemory Method