DIBVIEW: Manipulates DIBs, Illustrates Printing in Microsoft(R) Windows(TM) Versions 3.0 and 3.1

DIBVIEW provides the same functionality as SHOWDIB, but adds multiple document interface (MDI) capabilities, more modular functions, and banded printing.

The application manipulates device-independent bitmaps (DIBs) by loading a DIB from a file, saving a DIB, converting a DIB to a device-dependent bitmap (DDB) and vice versa, displaying a DDB or a DIB, and stretching the DIB to the screen or to the printer. The application also demonstrates extracting, creating, realizing palettes from DIB color tables, palette animation, copying and pasting from the clipboard, using common dialog boxes, installing a Microsoft(R) Windows(TM) hook, and displaying a system palette. DIBVIEW demonstrates printing in Windows versions 3.0 and 3.1, and can toggle between using the version 3.0 escape functions and the version 3.1 printer functions.

DIBVIEW uses a significant amount of memory. Whereas SHOWDIB lets the user have disk-based DIBs and read the DIB in small chunks, DIBVIEW keeps two copies of a bitmap in memory--a DIB and a DDB--at any one time.

Most menu options are self-explanatory. The Options dialog box lets a user change the way the currently selected bitmap is displayed.

DIBVIEW was built and tested under Microsoft Windows version 3.1.

KEYWORDS: Animation; Banding; Printing; Common dialogs; Clipboard; Palette; BitBlt; StretchBlt; SetDIBitsToDevice; StretchDIBits; CreateDIBitmap; GetDIBits; SetDIBits; DIB; BMP; file i/o; reading; writing; MDI; extra bytes; DialogBoxParam

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the dibview project." /C"samples}