system.drawing
Why System.Drawing + ClearType font have ugly black fragments?
I\'m using following C# code to make a picture with a text in it // Create font. Parameter is a global variable[详细]
2023-04-05 20:33 分类:问答How much is the performence degradation caused by using Shapes derived objects instead of Visual derived objects
In creating a drawing application or a simulation containing thousands of shapes, it is advised to used classes derived from Visual (like DrawingVisual) instead of classes derived from Shape due to pe[详细]
2023-04-05 15:17 分类:问答Bitmap.Save(Stream, ImageFormat) doesn't change MIME type
I\'m doing Bitmap.Save(MemoryStream, ImageFormat.Gif) on a JPG source image, but when checking the MIME type of the MemoryStream the image is saved to, I still get image/jpeg. Judging from the greatly[详细]
2023-04-05 06:26 分类:问答How to do hit testing inside a closed shape composed only of lines (no fill)
How to do it? The figure is an instance of DrawingVisual and DrawingContext.DrawLine is used to draw closed shapes.[详细]
2023-04-04 07:37 分类:问答Lines rotation problem
I have 2 lines that i draw like this: float Alpha = RotDegrees; PointF PitCenter = new Point(picBoxZoomMap.Width / 2, picBoxZoomMap.Height / 2);[详细]
2023-04-04 01:10 分类:问答DrawPath(Pen,GraphisPath) is throwing OutOfMemoryException
I\'ve been over this for a couple of time and can\'t figure it out. the method DrawPath is throwing a Sys开发者_如何转开发tem.OutOfMemoryException.[详细]
2023-04-01 01:05 分类:问答Creating a Color object for each pixel while using Bitmap.LockBits faster than BitMap.GetPixel?
Is creating a Color object for each pixel while using Bitmap.LockBits still faster than using Bitmap.GetPixel for each pixel?[详细]
2023-03-29 20:34 分类:问答Thick Line Drawing problem in C#.NET
I wanted to draw thick lines using Graphics.Lines() method. But it looks like the API has some bugs. If you try to render the user control with the following code, you would get weird looking image. I[详细]
2023-03-28 06:28 分类:问答How to set the resolution (DPI) for Microsoft Chart Control generated Images in asp.net
How can I define the image resolution (in DPI) for images created by开发者_StackOverflow the microsoft chart controls for .net (for the creation of .png-images).[详细]
2023-03-24 01:11 分类:问答Scale image to fixed-size canvas in .NET
I have a fixed-size canvas (e.g. presentation slide). Need to embed a picture into it without any quality distortion. If the image is smaller than the canvas, it must be centered. If it\'s larger, it[详细]
2023-03-23 11:31 分类:问答