ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / SetRasterOperationCode Method
Specifies the mix mode. This parameter can be one of the following values.

In This Topic
    SetRasterOperationCode Method (DeviceContext)
    In This Topic
    Sets 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 Overridable Function SetRasterOperationCode( _
       ByVal rasterOperationCode As RasterOperationCode _
    ) As RasterOperationCode
    public virtual RasterOperationCode SetRasterOperationCode( 
       RasterOperationCode rasterOperationCode
    )

    Parameters

    rasterOperationCode
    Specifies the mix mode. This parameter can be one of the following values.

    Return Value

    If the function succeeds, the return value specifies the previous mix mode. otherwise, zero indicates failed
    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