DIB_PAINT@

Platform

Win32, x64

Purpose

To display a device independent bitmap (DIB).

Syntax

 INTEGER FUNCTION DIB_PAINT@( HORIZ, VERT, HDIB,
+  FUNCTION, MODE )
 INTEGER HORIZ, VERT, FUNCTION, MODE
 INTEGER(7) HDIB

Description

Displays the DIB with handle HDIB on the current device with HORIZ and VERT relative displacement (they may be negative). FUNCTION selects the type of logical restore operation with respect to the previous screen :


 

0

REPLACE former pixel

 

1

AND with former pixel

 

2

OR with former pixel

 

3

XOR with former pixel


MODE specifies if

 

0

the dib palette should be used,

 

1

the current palette should be used and the image not dithered,

 

2

dithering should be used.


 

Before you can call this function the DIB must first be loaded using GET_SCREEN_BLOCK@, IMPORT_BMP@, IMPORT_PCX@, or CLIPBOARD_TO_SCREEN_BLOCK@.

Return value

Returns 1 the function is successful otherwise zero.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited