Подключить system windows forms. C# bitmap save to file. system.drawing.imaging.