GET_DIB_SIZE@

Platform

Win32, x64

Purpose

To get information from a BMP or JPEG data file.

Syntax

 SUBROUTINE GET_DIB_SIZE@( FILENAME, WIDTH, HEIGHT, NBBP,
+  ERCODE )
 CHARACTER(*) FILENAME
 INTEGER WIDTH, HEIGHT, NBBP, ERCODE

Description

This routine is similar to GET_IM_INFO@ but returns the number of bits per pixel NBBP as follows:

 

 

NBBP

Number of colours

 

1

2

 

4

16

 

8

256

 

24

16MB

 

For JPEG data the file name must have a .jpg or .jpeg extension.

See also

GET_DIB_BLOCK@, PUT_DIB_BLOCK@, DIB_PAINT@, USE_GDIPLUS_IMAGE_FILES@

Example

See Drawing device independent bitmaps.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited