System.Windows.Forms.Label.DrawImage C# (CSharp) Method

DrawImage() protected method

protected DrawImage ( Graphics g, Image image, Rectangle r, ContentAlignment align ) : void
g System.Drawing.Graphics
image System.Drawing.Image
r System.Drawing.Rectangle
align ContentAlignment
return void
		protected internal void DrawImage (Graphics g, Image image, Rectangle r, ContentAlignment align)
		{
 			if (image == null || g == null)
				return;

			Rectangle rcImageClip = CalcImageRenderBounds (image, r, align);

			//if (Enabled)
				g.DrawImage (image, rcImageClip.X, rcImageClip.Y, rcImageClip.Width, rcImageClip.Height);
			//else
			//	ControlPaint.DrawImageDisabled (g, image, rcImageClip.X, rcImageClip.Y, BackColor);
		}