Glossary Item Box

ImageMan DLL Suite Version 8 Submit feedback on this topic   

FMF

FMF

Description

Group3 Tiff, used by Faxman SDK and Faxman JR, conforming to V.17 fax specs.

Import Library

im8tif.dil

Export Library

 im8xtif.del

Remarks

As this format is a Group3 tiff, it is read and written by the ImageMan tiff libraries. Tiff Attributes that do not conform to V.17 specs will make the image invalid for faxing.

Attributes

Read and Write

 

Name

DataType

Notes

EXTENSION

OPTBLK_STRING

"TIF"

COMPRESS

OPTBLK_BOOL

If set to false, will be overridden it TIFF_COMPRESS is defined

TIFF_COMPRESS

OPTBLK_STRING

OPTBLK_COPY_IFSAMECOLOR

 

NONE (default) |MODCCITT|GROUP3|GROUP4|LZW|PACKBITS (default compression method if COMPRESS = True)

 

This specifies what compression method to use on bi-level images. Colors images are only compressed using the LZW compression method. The PACKBITS compression is a simple run length encoding method with moderate compression. The MODCCITT compression uses Huffman encoding to perform good compression. The GROUP3 option is the CCITT Group 3 Fax compression and yields the same compression ratios as the MODCCITT compression. GROUP4 is the CCITT Group 4 fax compression standard, and provides the best compression ratio.

 

The default compression is PACKBITS for bi-level images and color images, unless you have a license agreement with UNISYS. In that case the default compression for color images is LZW.

 

TIFF_ROWSPERSTRIP

OPTBLK_INT32

OPTBLK_COPY_IFSAMESIZE

Range from 1 to image height

 

This specifies the number of image lines that should be written in each strip of a TIFF image. By default ImageMan will create strips about 8K in length which is the recommended size. Normally you would not need to change this option.

 

TIFF_FILLORDER

OPTBLK_INT32

FMF require a value of 2.

 

Controls wether bits in a byte are written LSB->MSB (1) or MSB->LSB (2).

 

This specifies that the bits in a byte should be written in reverse order. This is often required for files that are to be faxed.

 

TIFF_NEWSUBFILETYPE

OPTBLK_INT32

 

This specifies the value of the NEWSUBFILETYPE tag that is written in the file. The default value is 0, which is appropriate for most files. A value of 2, which indicates the file is part of a multi-page document, is required for some fax files.

 

TIFF_BYTEFORMAT

OPTBLK_STRING

"MOTOROLA" | "INTEL"(default) Motorola or Intel byte ordering

TIFF_COLORMODEL

OPTBLK_INT32

OPTBLK_COPY_IFSAMECOLOR

 

TIFF_COLORMODEL specifies the color model used when writing the image data. The default is RGB.

 

This attribute will be defined as the default value unless specifically defined.

Option

Description

0

white is zero

1

black is zero

2

RGB

3

RGB Palette

4

Transparency Mask

5

CMYK

6

YCbCr (unsupported)

7

CIELab (unsupported)

 

 

Write Only

TIFF_XRES

OPTBLK_INT32

FMF requires an X resolution of 200

This specifies the xresolution of the TIFF image. XResolution by default will get and set info from DIB header

 

TIFF_YRES

OPTBLK_INT32

FMF requires an Y resolution of 196 (high resolution) or 98 (low resolution)

This specifies the xresolution of the TIFF image. YResolution by default will get and set info from DIB header

 

Example

Dim Attrs As Attributes

Dim lngWidth, lngHeight, AspectRatio As Long

 

Im1.GetFileName

Im1.Refresh

lngWidth = Im1.ImageWidth

lngHeight = Im1.ImageHeight

If Im1.ImageBitDepth <> 1 Then 'fmf must be b/w

  Im1.DitherMethod = 2

  Im1.ReduceTo 2, False, False

  Im1.Refresh

End If

If lngWidth > 1728 Then 'if too wide, scale with aspect ratio

  AspectRatio = lngWidth / lngHeight

  lngWidth = CLng(strWidth)

  lngHeight = lngWidth / AspectRatio

  Im1.ScaleMethod = AntiAlias

  Im1.ScaleImage lngWidth, lngHeight

  Im1.Refresh

End If

If lngWidth < 1728 Then 'if too narrow, merge with background

  Im2.CreateBitmap 1728, 2156, 1 'make hi res letter background

  Im2.Invert

  Im2.Refresh

  Im2.Merge Im1.Object

  Im2.Refresh

  Im1.hImage = Im2.hImage

  Im1.Refresh

End If

Set Attrs = New Attributes

Attrs.Add "EXTENSION", "TIF"

Attrs.Add "COMPRESS", "True"

Attrs.Add "TIFF_COMPRESS", "GROUP3"

Attrs.Add "TIFF_FILLORDER", 2

Attrs.Add "TIFF_XRES", 200

Attrs.Add "TIFF_YRES", 196

Attrs.Add "TIFF_ROWSPERSTRIP", (Im1.ImageHeight)

Attrs.Add "TIFF_BYTEFORMAT", "INTEL"

Attrs.Add "TIFF_COLORMODEL", 0

Attrs.Add "TIFF_NEWSUBFILETYPE", 0

Im1.Overwrite = Yes

Im1.SaveAs App.Path & "\" & "doc.FMF", Attrs

 

 


Copyright 2008 Data Techniques, Inc. All Rights Reserved