Xwt.Drawing.VectorImage.OnDraw C# (CSharp) Method

OnDraw() protected method

protected OnDraw ( Xwt.Drawing.Context ctx, Rectangle bounds ) : void
ctx Xwt.Drawing.Context
bounds Rectangle
return void
		protected override void OnDraw (Context ctx, Rectangle bounds)
		{
			ctx.Save ();
			ctx.Translate (bounds.Location);
			ctx.Scale (bounds.Width / Size.Width, bounds.Height / Size.Height);
			ToolkitEngine.VectorImageRecorderContextHandler.Draw (ctx.Handler, Toolkit.GetBackend (ctx), data);
			ctx.Restore ();
		}
	}