CMFCImagePaintArea::IMAGE_EDIT_MODE Enumeration

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CMFCImagePaintArea::IMAGE_EDIT_MODE Enumeration.

Specifies a drawing mode that you use to modify an image in an image editor dialog box.

enum IMAGE_EDIT_MODE  
{  
    IMAGE_EDIT_MODE_PEN = 0,  
    IMAGE_EDIT_MODE_FILL, 
    IMAGE_EDIT_MODE_LINE, 
    IMAGE_EDIT_MODE_RECT, 
    IMAGE_EDIT_MODE_ELLIPSE, 
    IMAGE_EDIT_MODE_COLOR 
};  

NameDescription
IMAGE_EDIT_MODE_PENUsed to draw individual pixels.
IMAGE_EDIT_MODE_FILLUsed to fill all adjacent areas that contain the color at the current cursor location.
IMAGE_EDIT_MODE_LINEUsed to draw a line.
IMAGE_EDIT_MODE_RECTUsed to draw a rectangle.
IMAGE_EDIT_MODE_ELLIPSEUsed to draw an ellipse.
IMAGE_EDIT_MODE_COLORUsed to set the current color to the color at the current cursor location.

Remarks

The CMFCImagePaintArea and CMFCImageEditorDialog classes use this enumeration to set the current drawing mode. The drawing mode and current color are used to modify the picture area in an image editor dialog box. For more information about CMFCImagePaintArea and CMFCImageEditorDialog, see CMFCImagePaintArea Class and CMFCImageEditorDialog Class.

When you select a color from an image by using the IMAGE_EDIT_MODE_COLOR drawing mode, the framework sets the current drawing mode to IMAGE_EDIT_MODE_PEN.

Header: afximagepaintarea.h

Macros and Globals
Hierarchy Chart
Classes
CMFCImagePaintArea Class
CMFCImageEditorDialog Class

Show: