1
2
3
4
5
6
7
8
9
10
|
/// <summary>
/// Changes the pixelformat of a given bitmap into any of the GDI+ supported formats.
/// </summary>
/// <param name="oldBmp">Die Bitmap die verändert werden soll.</param>
/// <param name="NewFormat">Das neu anzuwendende Pixelformat.</param>
/// <returns>Die Bitmap mit dem neuen PixelFormat</returns>
private static Bitmap ChangePixelFormat(Bitmap oldBmp, PixelFormat NewFormat)
{
return (oldBmp.Clone(new Rectangle(0, 0, oldBmp.Width, oldBmp.Height), NewFormat));
}
|