Graphical Display Objects Samples
Most of the samples show how to use GDI classes — CDC and CDC-derived classes and GDI object classes (CPen, CBrush, and so on). The following samples illustrate some special GDI techniques that use the Microsoft Foundation Class Library:
- DIBLOOK shows how to use device-independent bitmaps (DIBs) and color palettes.
- MDI shows how to use a memory display context to hold a bitmap and BitBlitting the bitmap to a window's client display context.
- MDIDOCVW is a version of the MDI sample that uses the document/view architecture.
- MMXSwarm demonstrates how to use CImage, the __m64 data type, and device-independent bitmaps (DIBs).
- SimpleImage uses CImage to load, display, and save a variety of different image formats, including .bmp, .gif, .jpg, and .png.
- Spiro shows how to use CImageList and how to use memory display contexts in applications requiring animation effects.
- Also, see samples illustrations of printing and print preview.