/// <summary> /// нарисовать подложку - просто закрасить кистью или заблурить (BlurFactor > 0) /// </summary> private void DrawPopupArea(Graphics g, ChartPopup popup) { if (popup.BlurFactor == 0) { g.FillRectangle(popup.BrushArea, popup.Left, popup.Top + ChartPopup.captionWidth, popup.Width, popup.Height); } else { using (var img = BitmapProcessor.CaptureControl(Chart, g)) using (var blured = BitmapProcessor.GetBluredImage(img, new Rectangle(popup.Left, popup.Top + ChartPopup.captionWidth, popup.Width, popup.Height), popup.BlurFactor)) g.DrawImage(blured, popup.Left, popup.Top + ChartPopup.captionWidth); } }