//	Copyright © 2003-2005, EPSITEC SA, CH-1092 BELMONT, Switzerland
//	Responsable: Pierre ARNAUD

namespace Epsitec.Common.Drawing.Platform
{
	/// <summary>
	/// The ImageDisabler class provides access to Windows image converter,
	/// which produces a disabled representation of a given icon.
	/// </summary>
	public sealed class ImageDisabler
	{
		private ImageDisabler()
		{
		}
		
		
		public static void Paint(System.Drawing.Bitmap src_bitmap, System.Drawing.Bitmap dst_bitmap, System.Drawing.Color color)
		{
			using (System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage (dst_bitmap))
			{
				System.Windows.Forms.ControlPaint.DrawImageDisabled (graphics, src_bitmap, 0, 0, color);
			}
		}
	}
}
