Please try if this approach works for you.
Code: Select all | Expand
#include "fivewin.ch"
#define SRCCOPY 0x00CC0020
#define SRCINVERT 0x00660046
function Main()
local oPrn, aBmp, nBmpHeight, nRow
local cFile := "c:\fwh\bitmaps\alphabmp\handnew.bmp"
PRINT oPrn PREVIEW
PAGE
aBmp := FW_ReadImage( nil, cFile )
nBmpHeight := aBmp[ 4 ]
nRow := 300
oPrn:Say( nRow, 300, "Print Normal" )
nRow += 100
DrawBitmap( oPrn:hDCOut, aBmp[ 1 ], nRow, 300, 0, 0, SRCCOPY )
nRow += ( nBmpHeight + 100 )
oPrn:Say( nRow, 200, "Print Negative" )
nRow += 100
DrawBitmap( oPrn:hDCOut, aBmp[ 1 ], nRow, 300, 0, 0, SRCINVERT )
ENDPAGE
ENDPRINT
PalBmpFree( aBmp )
return nil
