提供可用于修改在图像编辑器对话框中的图像的图像区域。
class CMFCImagePaintArea : public CButton
成员
公共构造函数
名称 |
说明 |
构造 CMFCImagePaintArea 对象。 |
|
CMFCImagePaintArea::~CMFCImagePaintArea |
析构函数。 |
公共方法
名称 |
说明 |
检索当前绘图模式。 |
|
设置图像区域的位图图像。 |
|
设置当前绘制颜色。 |
|
设置当前绘图模式。 |
备注
此类不适于在您的代码中直接使用。
框架使用此选件类显示在图像编辑器对话框的图像区域。有关图像编辑器对话框的更多信息,请参见 CMFCImageEditorDialog选件类。
示例
下面的示例演示如何构造对象 CMFCImagePaintArea 选件类,将当前绘制颜色,将当前绘图模式,并设置图像区域的位图图像。
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);
继承层次结构
要求
标头: afximagepaintarea.h