// Convert a brush into an exclusive-OR brush which XOR's the brush // against a drawing surface, and also includes inferior child // windows in the draw operation. public static Brush CreateXorBrush(Brush brush) { //return new XorBrush(brush); return(toolkit.CreateXorBrush(brush)); }
// Create this brush for a specific toolkit. Inner part of "GetBrush()". internal override IToolkitBrush CreateBrush(IToolkit toolkit) { IToolkitBrush innerBrush = brush.GetBrush(toolkit); return(toolkit.CreateXorBrush(innerBrush)); }
// Create this brush for a specific toolkit. Inner part of "GetBrush()". internal override IToolkitBrush CreateBrush(IToolkit toolkit) { IToolkitBrush innerBrush = brush.GetBrush(toolkit); return toolkit.CreateXorBrush(innerBrush); }