system.drawing.imaging Questions
8
Solved
After several days of tracking down bizarre GDI+ errors, I've stumbled across this little gem on MSDN:
Classes within the System.Drawing namespace are not supported for use within a Windows or A...
Reine asked 6/10, 2009 at 22:56
7
Solved
As I'm bringing in images into my program, I want to determine if:
they have an alpha-channel
if that alpha-channel is used
#1 is simple enough with using Image.IsAlphaPixelFormat. For #2 thoug...
Carmelocarmen asked 17/6, 2010 at 19:16
1
I'm trying to create an image on a bitmap using C#. Somehow it always adds grey border on all sides of the image. Many questions have been posted with the solution and I have tried almost all of th...
Cohl asked 25/7, 2020 at 10:31
8
This code fails when trying to call Image.Save(MemoryStream, ImageFormat).
I get the exception:
a Value cannot be null.Parameter name: encoder"
ImageFormat format = generatedImage.RawFormat ...
Pericles asked 26/11, 2010 at 15:50
5
Solved
Is it possible to get the extension, for any given System.Drawing.Imaging.ImageFormat? (C#)
Example:
System.Drawing.Imaging.ImageFormat.Tiff -> .tif
System.Drawing.Imaging.ImageFormat.Jpeg -&g...
Roi asked 4/1, 2013 at 14:38
1
My code enumerates a metafile:
private void Parse()
{
Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);
PointF pointf = new PointF();
graphics.EnumerateMetafile(_metafile, pointf, ParseCallba...
Uzzi asked 31/7, 2014 at 9:4
1
Solved
I need to load GIF animations and convert them frame by frame to bitmaps. To do that, I am extracting my GIF file frame by frame using Drawing.Imaging library and then casting each frame to bitmap....
Chandelle asked 18/7, 2013 at 11:55
2
Solved
I'm completely new to image processing in ASP.NET. I am very familiar with Photoshop, and image magick to some degree.
I am trying to figure out what the difference is between Quality and Compress...
Reconcilable asked 8/8, 2012 at 22:51
2
Solved
I've been able to create a Format48bppRgb .PNG file (from some internal HDR data) using the the following C# code:
Bitmap bmp16 = new Bitmap(_viewer.Width, _viewer.Height, System.Drawing.Imaging.P...
Sensationalism asked 1/9, 2011 at 20:37
3
Solved
I just got a real surprise when I loaded a jpg file and turned around and saved it with a quality of 100 and the size was almost 4x the original. To further investigate I open and saved without exp...
Deadly asked 18/10, 2010 at 8:15
1
© 2022 - 2024 — McMap. All rights reserved.