ImageFormat()

Syntax

Result = ImageFormat(#Image)
Description
Return the original image format.

Parameters

#Image The image to use.

Return value

Returns the image original format. It can be one of the following value:
  #PB_ImagePlugin_JPEG
  #PB_ImagePlugin_JPEG2000
  #PB_ImagePlugin_PNG
  #PB_ImagePlugin_TGA
  #PB_ImagePlugin_TIFF
  #PB_ImagePlugin_BMP
  #PB_ImagePlugin_ICON
If the image was not loaded from one of this format, it will return zero. This is the case for images created with CreateImage() or GrabImage().

See Also

LoadImage(), CreateImage(), CatchImage(), GrabImage(), ImagePlugin library

Supported OS

All

<- ImageDepth() - Image Index - ImageHeight() ->