Silverfrost Logo About Us | Contact Us
 

GET_DIB_SIZE@

Platform

Win32(ClearWin+)

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@

Example

See Drawing device independent bitmaps.

 

 

Copyright © 1999-2017 Silverfrost Limited