public void PaintBackground(BidiGraphics g) { // draw watermark if we have one if ( WatermarkImage != null && !SystemInformation.HighContrast) { Point watermarkLocation = new Point(_weblogPanelBody.Bounds.Right - WatermarkImage.Width , _weblogPanelBody.Bounds.Top ) ; GraphicsContainer gc = g.Graphics.BeginContainer() ; try { Rectangle clipRegion = _weblogPanelBody.Bounds ; clipRegion.Width -= 1 ; clipRegion.Height -= 1 ; g.IntersectClip(clipRegion); g.DrawImage(false, WatermarkImage, watermarkLocation.X, watermarkLocation.Y); } finally { g.Graphics.EndContainer(gc); } } }