ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
  • Miscellaneous
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
Example
Syntax
<Result> = BitmapInfo(<Image file name>)
<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>IntegerImage width in pixels.
    Remark: The width and height can be inverted depending on the position of the (0,0) point of the image. To get the width and height taking into account the orientation of the image, use a variable of type Image.
    <Height>IntegerImage height in pixels.
    Remark: The width and height can be inverted depending on the position of the (0,0) point of the image. To get the width and height taking into account the orientation of the image, use a variable of type Image.
    <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
<Image file name>: Character string
  • Name of the image or PDF file, including its full or relative path (up to 260 characters). A UNC path can be used.
  • Name of the control bound to an image memo item.
AndroidAndroid Widget The PDF files are not supported.
Remarks

Miscellaneous

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

Last update: 01/16/2024

Send a report | Local help