MAKE_BITMAP@

Platform

Win32, x64

Purpose

To embed a bitmap in program code.

Syntax

INTEGER(7) FUNCTION MAKE_BITMAP@(BMP_DATA, XRES, YRES)
CHARACTER*YRES BMP_DATA( XRES )
INTEGER XRES, YRES
PARAMETER XRES,YRES 

Description

Bitmaps are usually included in a program statically via resources or dynamically with Windows API calls. This routine is provided so that bitmaps may be included in the source code as text data and then translated into bitmap format. A (HBITMAP) handle to a bitmap is returned that can be used for example with %`bm. This provides a speedy method of designing simple graphics that would otherwise require image editing software.

The character arrays may include the following characters:

 

 

- (minus)

Black

 

b

Dark blue

 

r

Dark red

 

g

Dark green

 

y

Dark yellow (brown)

 

m

Dark magenta

 

c

Dark cyan

 

w

Grey

 

l

Light grey

 

B

Blue

 

R

Red

 

G

Green

 

Y

Yellow

 

M

Magenta

 

C

Cyan

 

W

White


 

Return value

Returns a bitmap handle to the new bitmap.

See also

MAKE_ICON@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited