Top "System.drawing" questions

System.

Cannot find Bitmap Class in Class Library (.NET Standard)

I want to make a Class Library (.NET Standard) and I'm using System.Drawing, but I get the error: CS0246 …

c# bitmap system.drawing class-library
Convert Pixels to Inches and vice versa in C#

I am looking to convert pixes to inches and vice versa. I understand that I need DPI, but I am …

c# winforms system.drawing pixels inches
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? …

c# asp.net-mvc-2 graphics system.drawing
C# Drawstring Letter Spacing

Is is somehow possible to control letter spacing when using Graphics.DrawString? I cannot find any overload to DrawString or …

c# system.drawing
Graphics.DrawImage: Out of memory exception

I just can't for the life of me figure out why I'm getting an out of memory exception here, even …

c# asp.net system.drawing
System.Drawing Out of Memory Exception

My application graphics engine throws these exceptions. They are all consumed by an empty catch block. In the early days …

c# system.drawing
Image Resize in C# - Algorith to determine resize dimensions (height and width)

I need to scale down an image that has a height or width greater than a predefined pixel value. I …

c# image-processing bitmap image-manipulation system.drawing
Cannot render image to HttpContext.Response.OutputStream

Basically I am trying to render a simple image in an ASP.NET handler: public void ProcessRequest (HttpContext context) { Bitmap …

c# asp.net gdi+ system.drawing
Convert RenderTargetBitmap to Bitmap

This looks like a dup question, it is, but no one has answered the actual question(s). Here goes: Basically, …

wpf vb.net system.drawing rendertargetbitmap
How can I tell if two polygons intersect?

Imagine I have the coordinate of 4 points that form a polygon. These points are represented using PointF in C#. If …

c# polygon intersection system.drawing