CMFCImagePaintArea Class
Provides the picture area that you use to modify an image in an image editor dialog box.
class CMFCImagePaintArea : public CButton
Members
Public Constructors
Name |
Description |
Constructs a CMFCImagePaintArea object. |
|
CMFCImagePaintArea::~CMFCImagePaintArea |
Destructor. |
Public Methods
Name |
Description |
Retrieves the current drawing mode. |
|
Sets the bitmap image for the picture area. |
|
Sets the current drawing color. |
|
Sets the current drawing mode. |
Remarks
This class is not intended to be used directly from your code.
The framework uses this class to display the picture area in an image editor dialog box. For more information about the image editor dialog box, see CMFCImageEditorDialog Class.
Example
The following example demonstrates how to construct an object of the CMFCImagePaintArea class, set the current drawing color, set the current drawing mode, and set the bitmap image for the picture area.
COLORREF mcolor(RGB(0,255,0));
//CBitmap bitmap;
CMFCImageEditorDialog* dialog = new CMFCImageEditorDialog(&bitmap);
CMFCImagePaintArea* wndLargeDrawArea = new CMFCImagePaintArea(dialog);
wndLargeDrawArea->SetColor(mcolor);
wndLargeDrawArea->SetMode(CMFCImagePaintArea::IMAGE_EDIT_MODE_PEN);
wndLargeDrawArea->SetBitmap(&bitmap);
Inheritance Hierarchy
Requirements
Header: afximagepaintarea.h