Win_CreateCompatibleBitmap

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_CreateCompatibleBitmap

 

Description

 

Creates a bitmap compatible with the device that is associated with the specified device context

 

Syntax

 

n = Win_CreateCompatibleBitmap(hDC, lWidth, lHeight)

 

Returns

 

Number.

If the function succeeds, the return value is a handle to the compatible bitmap (DDB).

If the function fails, the return value is NULL.

 

Parameters

 

Name

Type

Optional

Meaning

hDC

Number

No

A handle to a device context.

lWidth

Number

No

The bitmap width, in pixels.

lHeight

Number

No

The bitmap height, in pixels.

 

Remarks

 

Restrictions

 

See also

 

Examples