• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

Blit-Lab - Graphic Copy and BitBlt revisited

Started by Theo Gottwald, February 24, 2019, 02:03:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

For an actual Project I am evaluating, in which tasks i can use the Graphics Hardware to speed things up.
So i made this Utility which can be used to test the different modes of the Blitter.
It supports the Powerbasic Graphics-Copy Syntax as well as the underlying BitBlt API.
You can choose some pictures, and choose the Blit-Command and see the result.
The excutable is attached to this Post as RAR File.

The raster operations used with BitBlt and StretchBlt involve a combination of three objects, and this results in 256 raster operations. There are 256 ways to combine a source bitmap, a destination bitmap, and a pattern. Fifteen of these raster operations are given names—some of them rather obscure—defined in WINGDI.H. The others have numeric values that are shown in /Platform SDK/Graphics and Multimedia Services/GDI/Raster Operation Codes/Ternary Raster Operations.