internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout) { ControlPaint.DrawImageReplaceColor( graphics, image, imageBounds, Color.Black, IsHighContrastHighlighted() && !Control.MouseIsDown ? SystemColors.HighlightText : Control.ForeColor); }
internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, ButtonBaseAdapter.LayoutData layout) { if (AccessibilityImprovements.Level3 && IsFilledWithHighlightColor && (Control.MouseIsOver || Control.Focused)) { ControlPaint.DrawImageReplaceColor(graphics, image, imageBounds, Color.Black, SystemColors.HighlightText); } else { ControlPaint.DrawImageReplaceColor(graphics, image, imageBounds, Color.Black, Control.ForeColor); } }
internal override void DrawImageCore(Graphics graphics, Image image, int xLoc, int yLoc) { ControlPaint.DrawImageReplaceColor(graphics, image, new Rectangle(xLoc, yLoc, image.Width, image.Height), Color.Black, ForeColor); //ControlPaint.DrawImageColorized(graphics, image,new Rectangle(xLoc, yLoc, image.Width, image.Height) , ForeColor); }
internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, ButtonBaseAdapter.LayoutData layout) { ControlPaint.DrawImageReplaceColor(graphics, image, imageBounds, Color.Black, Control.ForeColor); //ControlPaint.DrawImageColorized(graphics, image, imageBounds , Control.ForeColor); }