System.Drawing supports a limited range of input file formats.
You may wish to combine the import and export facilities of
ImageGlue with those of System.Drawing for a more comprehensive
approach to drawing images.
This example shows how to draw a JPEG file using System.Drawing
and then export it in Adobe Photoshop format using
ImageGlue.
1
Drawing using System.Drawing
We create our System.Drawing Bitmap from our source image.
[C#]
using (var img = System.Drawing.Bitmap.FromFile(Server.MapPath("rez/ryk-naves-4Q6kXLAKK_Y-unsplash.jpg"))) {
using (Bitmap bm = Bitmap.FromSystemDrawingBitmap((System.Drawing.Bitmap)img)) {
bm.Save(Server.MapPath("ImageGlue_Export_NET_10.psd"), ImageFormat.Psd);
}
}