Class Hierarchy
CAcGradientThumbnailEngine
C++
class CAcGradientThumbnailEngine;
File
AcGradThumbEng.h
Description
This class provides the ability to generate and display thumbnails of gradient configurations, as seen on the Gradient tab of the AutoCAD Hatch dialog.
This is a pure virtual interface. The developer acquires a pointer to the underlying implementation object by calling the global function createGradientThumbnailEngine(). When finished with the thumbnail engine, the developer should delete the pointer.
The process of creating the thumbnails involves the following steps:
- Create the gradient thumbnail engine.
- Set the desired gradient hatch parameters such as colors and angle.
- Render the thumbnails.
- Draw each of the nine thumbnails into a Windows device context.
- Make any changes to the gradient parameter; render and display the thumbnails as often as desired.
- When finished generating thumbnails, destroy the gradient thumbnail engine.