CDrawingManager Class
The CDrawingManager class implements complex drawing algorithms.
class CDrawingManager : public CObject
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CDrawingManager object. |
|
CDrawingManager::~CDrawingManager |
Destructor. |
Public Methods
Name |
Description |
---|---|
Creates a 32-bit device-independent bitmap (DIB) that applications can write to directly. |
|
Displays bitmaps that have transparent or semitransparent pixels. |
|
Rotates a source DC content inside the given rectangle by +/- 90 degrees |
|
Draws an ellipse with the supplied fill and border colors. |
|
Draws a ring and fills it with a color gradient. |
|
Draws a line. |
|
Draws a rectangle with the supplied fill and border colors. |
|
Draws a shadow for a rectangular area. |
|
Fills a rectangular area with two color gradients. |
|
Fills a rectangular area with a specified color gradient. |
|
Fills a rectangular area with a specified color gradient. The direction of the gradient's color change is also specified. |
|
Fills a rectangle with a specified gray color. |
|
Highlights a rectangular area. |
|
Converts a color from a HLS representation to a RGB representation. |
|
Converts a color from a HLS representation to a RGB representation. |
|
Converts a color from a HSV representation to a RGB representation. |
|
Helper method that converts a hue value to a red, green, or blue component. |
|
Flips a rectangular area. |
|
Helper method that determines the final color for a semitransparent pixel. |
|
Creates a bitmap that can be used as a shadow. |
|
Converts a color from a RGB representation to a HSL representation. |
|
Converts a color from a RGB representation to a HSV representation. |
|
Helper method that colors a partially transparent pixel in a bitmap. |
|
Helper method that changes a single pixel in a bitmap to the specified color. |
|
Combines two colors based on a weighted ratio. |
Remarks
The CDrawingManager class provides functions for drawing shadows, color gradients, and highlighted rectangles. It also performs alpha-blending. You can use this class to directly change your application's UI.
Inheritance Hierarchy
Requirements
Header: afxdrawmanager.h