system.drawing
InterpolationMode HighQualityBicubic introducing artefacts on edge of resized images
Using some pretty stock standard C# code to resize an image, and place it on a coloured background Image imgToResize = Image.FromFile(@\"Dejeuner.jpg\");[详细]
2023-02-06 00:32 分类:问答How to scale text when drawing to an Image with c#
I would like开发者_运维知识库 to draw some text in a rectangle and have it scale to the maximum size that fits within the rectangle.[详细]
2023-01-31 22:34 分类:问答C# - Draw one or more HBitmaps on a Bitmap without using Image.FromHBitmap
I receive multiple (small) images stored in HBitmaps (handles to GDI bitmaps) and I want to draw them together in a large C# System.Drawing.Bitmap object. For performance reasons, I don\'t want to use[详细]
2023-01-30 17:27 分类:问答How to make Silverlight version of existing C# code that relies on System.Drawing namespace
We have pretty much C# 2.0 code that heavily relies on System.Drawing namespace. Also there is some WinGDI dependencies (via interop).[详细]
2023-01-30 07:16 分类:问答C# - How to get the area of a System.Drawing.Region?
I\'m computing the area of a recta开发者_StackOverflow中文版gle after exclude the area of some circles.[详细]
2023-01-30 06:42 分类:问答How to draw an arrow with a border?
I am attempting to draw an arrow which has a border or a outline. I am drawing this arrow as an overlay within a third-party program.Here is a simplified example of that code.[详细]
2023-01-27 16:20 分类:问答.net2.0 vs .net 4.0 gdi+ difference?
I have a really weird problem where I have an application that does a lot of involved GDI+ manipulation of pictures.Such as cropping zooming etc.My application works fine in .net 2.0, but in .net 4.0[详细]
2023-01-27 12:19 分类:问答Adding a background graphic to http handler image
the following code is a handler that takes in a Percent (percent of the graph to show as blue), Max (maximum value), and a Gallons value (number) to create a thermometer-style progress meter. It outpu[详细]
2023-01-26 12:22 分类:问答Outline text with System.Drawing?
I have the following code.Is there an easy way to put an outline on the text I am writing? var imageEncoder = Encoder.Quality;[详细]
2023-01-25 05:28 分类:问答Possible GDI+ DrawLines Optimization pondering
I am trying to get more performance out of c# GDI+ DrawLines function. When I run a profiler on the the code I see that almost half of the time spend in the DrawLines function is preparing the point a[详细]
2023-01-24 08:10 分类:问答