PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves the characteristics of an image file or the characteristics of a PDF file:
  • format,
  • width and height,
  • number of bits per pixel.
AndroidAndroid Widget The PDF files are not supported.
Versions 16 and later
Versions 17 and later
Android This function is now available for the image files in the Android applications.
New in version 17
Android This function is now available for the image files in the Android applications.
Android This function is now available for the image files in the Android applications.
New in version 16
Versions 17 and later
Android This function is now available for the image files in the Android applications.
New in version 17
Android This function is now available for the image files in the Android applications.
Android This function is now available for the image files in the Android applications.
Versions 17 and later
Android This function is now available for the image files in the Android applications.
New in version 17
Android This function is now available for the image files in the Android applications.
Android This function is now available for the image files in the Android applications.
Versions 18 and later
Android Widget This function is now available for the image files in Android Widget mode.
New in version 18
Android Widget This function is now available for the image files in Android Widget mode.
Android Widget This function is now available for the image files in Android Widget mode.
Example
Windows Mobile
ImageInfo, Format are strings
Height, Width are int
// Retrieve the characteristics of the image
ImageInfo = BitmapInfo("C:\Windows\TILES.BMP")
// In Windows Mobile:
// ImageInfo = BitmapInfo("\Windows\TILES.BMP")
Format = ExtractString(ImageInfo, 1)
Width = Val(ExtractString(ImageInfo, 2))
Height = Val(ExtractString(ImageInfo, 3))
// Display the characteristics
Info("Format of the image: " + Format, "Width: " + Width, "Height: " + Height)
Syntax
<Result> = BitmapInfo(<Name of image file>)
<Result>: Character string
  • Characteristics of the image in the following format:
    <Format> + TAB + <Width> + TAB + <Height> + TAB + <Bits/pixel>

    <Format>Character string
    • Three characters are used to identify the image format: "BMP", "GIF", "PDF", ...
    • "BAD" if the image nameis an non-existing file or if the format is unknown
    <Width>IntegerWidth of image in pixels.
    <Height>IntegerHeight of image in pixels.
    <Bits/pixel>Character stringNumber of bits per pixel:
    • 1 (monochrome image)
    • 4 (16-color palette)
    • 8 (256-color palette)
    • 24 (no palette, 16 millions of colors)
    • 32 (no palette, true color)
    AndroidAndroid Widget The number of bits per pixel is always equal to 0.
  • If an error occurs, the following string is returned:
    "BAD" + TAB + TAB + TAB
<Name of image file>: Character string (with quotes)
  • Name of image file or name of PDF file, including its full or relative path (up to 260 characters). A UNC path can be used.
  • Name of control linked to an image memo item.
Windows Mobile No relative path or UNC path can be used.
AndroidAndroid Widget The PDF files are not supported.
Remarks

Various

  • BitmapInfo can be used with the files in PDF format.
    Caution: the GDI + framework must be installed on the computer.
    AndroidAndroid Widget This feature is not available.
  • For the images in WMF or EMF format, <Bits/pixel> is equal to 0.
  • The following formats of image files are supported:
    • AndroidAndroid Widget JPEG, PNG, GIF or BMP.
    • Windows Mobile BMP, JPEG, GIF, PNG or ICO.
Component : wd240obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment