DIB_PRINT@

Platform

Win32, x64

Purpose

To print a device independent bitmap.

Syntax

 INTEGER FUNCTION DIB_PRINT@(HDIB, PR_X, PR_Y, PR_WIDTH,
+ PR_HEIGHT)
 INTEGER(7) HDIB
 INTEGER PR_X, PR_Y, PR_WIDTH, PR_HEIGHT

Description

This function replaces PRINT_DIB@.

HDIB is the handle of a DIB created using GET_SCREEN_DIB@. Calling this routine allows you to set the bitmap source dimensions. PR_X, PR_Y, PR_WIDTH, and PR_HEIGHT are dimensions for the printer page.

You must call GET_SCREEN_DIB@ before opening the printer (with OPEN_PRINTER@). Then call DIB_PRINT@ after opening the printer.

Setting PR_X=-1, causes the output to be centred horizontally on the page.
Setting PR_Y=-1, causes the output to be centred vertically on the page.
Setting PR_WIDTH=-1, causes the output to be scaled horizontally in proportion to the screen and printer page width.
Setting PR_HEIGHT=-1, causes the output to be scaled vertically in proportion to the screen and printer page height.

Return value

Returns 1 for success or zero for failure.

See also

PRINT_DIB@, DIB_PAINT@, RELEASE_SCREEN_DIB@, EXPORT_BMP@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited