Example #1
0
 // 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));
 }
Example #2
0
        // 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);
			}