LayoutFarm.RenderUtils.DrawImageLoadingIcon C# (CSharp) Method

DrawImageLoadingIcon() public static method

Get cached pen instance for the given color. Draw image loading icon.
public static DrawImageLoadingIcon ( 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 DrawImageLoadingIcon(Canvas g, RectangleF r)
        {
            g.DrawRectangle(Color.LightGray, r.Left + 3, r.Top + 3, 13, 14);
            var image = GetLoadImage();
            g.DrawImage(image, new RectangleF(r.Left + 4, r.Top + 4, image.Width, image.Height));
        }