LayoutFarm.RenderUtils.DrawImageErrorIcon C# (CSharp) Method

DrawImageErrorIcon() public static method

Draw image failed to load icon.
public static DrawImageErrorIcon ( Canvas g, RectangleF r ) : void
g PixelFarm.Drawing.Canvas the device to draw into
r PixelFarm.Drawing.RectangleF the rectangle to draw icon in
return void
        public static void DrawImageErrorIcon(Canvas g, RectangleF r)
        {
            g.DrawRectangle(Color.LightGray, r.Left + 2, r.Top + 2, 15, 15);
            var image = GetErrorImage();
            g.DrawImage(image, new RectangleF(r.Left + 3, r.Top + 3, image.Width, image.Height));
        }