ImageTools - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Image Processing : ImageTools Package : ImageTools/FormatFromName

ImageTools

  

FormatFromName

  

guess image file format from name

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

FormatFromName( file )

Parameters

file

-

string; name of an image file

Description

• 

The FormatFromName command examines the passed filename and determines the image file format based on the extension. It returns either a member of ImageTools[Formats] or NULL if it was unable to guess.

• 

The parameter file is the name of the image file.

• 

The extensions .jpg, .jpeg, .jpe, and .jeg are recognized as JPEG files.

• 

The extensions .tif, .tiff, and .tff are recognized as TIFF files.

• 

The extensions .bmp and .dib are recognized as BMP files.

Examples

withImageTools:

FormatFromNamephoto.jpeg

JPEG

(1)

FormatFromName/tmp/snail.tif

TIFF

(2)

FormatFromNamemusic.mp3

See Also

ImageTools

ImageTools[Formats]

ImageTools[Read]

ImageTools[Write]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam