|
|
|
|
|
- Miscellaneous
- Drawing in PHP
BitmapInfo (Function) In french: InfoBitmap Retrieves the characteristics of an image file or the characteristics of a PDF file: - format,
- width and height,
- number of bits per pixel.
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> | Integer | Image 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> | Integer | Image 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 string | Number 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)
The number of bits per pixel is always equal to 0. The number of bits per pixel is always equal to 32. |
- If an error occurs, the following string is returned:
<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.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|