Share

CAcGradientThumbnailEngine

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:

  1. Create the gradient thumbnail engine.
  2. Set the desired gradient hatch parameters such as colors and angle.
  3. Render the thumbnails.
  4. Draw each of the nine thumbnails into a Windows device context.
  5. Make any changes to the gradient parameter; render and display the thumbnails as often as desired.
  6. When finished generating thumbnails, destroy the gradient thumbnail engine.

Links

CAcGradientThumbnailEngine Methods

Was this information helpful?