ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / ImageDeviceContext Class / RasterOperationCode Property

In This Topic
    RasterOperationCode Property (ImageDeviceContext)
    In This Topic
    Get or set the current foreground mix mode.GDI uses the foreground mix mode to combine pens and interiors of filled objects with the colors already on the screen. The foreground mix mode defines how colors from the brush or pen and the colors in the existing image are to be combined.
    Syntax
    'Declaration
     
    
    Public Property RasterOperationCode As RasterOperationCode
    public RasterOperationCode RasterOperationCode {get; set;}

    Property Value

    Specifies the mix mode. This parameter can be one of the following values.
    Remarks
    Mix modes define how GDI combines source and destination colors when drawing with the current pen. The mix modes are binary raster operation codes, representing all possible Boolean functions of two variables, using the binary operations AND, OR, and XOR (exclusive OR), and the unary operation NOT. The mix mode is for raster devices only; it is not available for vector devices.
    See Also