tagged [drawing]

How to draw a checkmark / tick using CSS?

How to draw a checkmark / tick using CSS? How to the tick symbol using CSS? The symbols I find using [Unicode](https://en.wikipedia.org/wiki/Check_mark#Unicode) isn't aesthetically-pleasing. Icon font...

6 May at 09:46

get extension from System.Drawing.Imaging.ImageFormat (C#)

get extension from System.Drawing.Imaging.ImageFormat (C#) Is it possible to get the extension, for any given `System.Drawing.Imaging.ImageFormat`? (C#) Example: This can easily be done as a lookup ta...

4 Jan at 14:38

How to use the projection/camera technique in c#

How to use the projection/camera technique in c# I drew the following grid: [](https://i.stack.imgur.com/6UUqT.png) The above grid is drawn using the following two methods, one to calculate the grid a...

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

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# The type or namespace name 'Bitm...

Set System.Drawing.Color values

Set System.Drawing.Color values Hi how to set `R G B` values in `System.Drawing.Color.G` ? which is like `System.Drawing.Color.G=255;` is not allowed because its read only i just need to create a `Col...

4 points and Ellipse

4 points and Ellipse I have 4 points.. i can draw a polygon usign this code ![enter image description here](https://i.stack.imgur.com/4e3sV.png) # Question is still unanswared!!!

How to open a multi-frame TIFF imageformat image in .NET 2.0?

How to open a multi-frame TIFF imageformat image in .NET 2.0? or both produce image objects with only one frame even though the source is a multi-frame TIFF file. The tiffs are saved using the Image.S...

30 Dec at 21:37

Drawing on Video within C#

Drawing on Video within C# I am making an application that will allow users to apply certain tools to analyse videos & images. I need help with how i actaully draw/write on the video loaded into windo...

20 Sep at 14:4

C# Drawstring Letter Spacing

C# Drawstring Letter Spacing Is is somehow possible to control letter spacing when using Graphics.DrawString? I cannot find any overload to DrawString or Font that would allow me to do so. By letter s...

12 Sep at 09:30

Alternatives to System.Drawing for use with ASP.NET?

Alternatives to System.Drawing for use with ASP.NET? After several days of tracking down bizarre GDI+ errors, I've stumbled across this little gem on [MSDN](http://msdn.microsoft.com/en-us/library/sys...

Set color through color code in c#

Set color through color code in c# I am trying to add color in c# code, with the following color code for example. > ListTreeView.Background = new SolidColorBrush(Colors.White); This is working..but I...

27 Jan at 16:50

Drawing Library for Ruby

Drawing Library for Ruby I am trying to code a flowchart generator for a language using Ruby. I wanted to know if there were any libraries that I could use to draw various shapes for the various flowc...

26 Jun at 04:25

How To: Best way to draw table in console app (C#)

How To: Best way to draw table in console app (C#) I have an interesting question. Imagine I have a lot of data changing in very fast intervals. I want to display that data as a table in console app. ...

13 May at 08:50

Drawing circles with System.Drawing

Drawing circles with System.Drawing I have this code that draws a Rectangle ( Im trying to remake the MS Paint ) ``` case "Rectangle": if (tempDraw != null) { tempDraw = (Bitm...

13 Oct at 21:52

Draw a parallel line

Draw a parallel line I have x1,y1 and x2,y2 which forms a line segment. How can I get another line x3,y3 - x4,y4 which is parallel to the first line as in the picture. I can simply add n to x1 and x2 ...

Add color options to System.Drawings.Color

Add color options to System.Drawings.Color In visual studio, when creating controls in the markup(or in code-behind) you can specify colors in HEX format like this: "#FFFFFF", but you also can select ...

c# write text on bitmap

c# write text on bitmap I have following problem. I want to make some graphics in c# windows form. I want to read bitmap to my program and after it write some text on this bitmap. In the end I want th...

10 Jun at 20:7

How to set multiple FontStyles when instantiating a font?

How to set multiple FontStyles when instantiating a font? In looking at the constructors for the System.Drawing.Font class there is a parameter to pass in one of the FontStyles defined in the System.D...

11 May at 17:53

Drawing over an NSCollectionViews subviews

Drawing over an NSCollectionViews subviews I have the following code in an NSCollectionView subclass: ``` -(void)drawRect:(NSRect)rect { if(!NSEqualRects(highlightBox,NSZeroRect)) { [[NSCol...

How do I set the thickness of a line in VB.NET

How do I set the thickness of a line in VB.NET In VB.NET I'm drawing an ellipse using some code like this. But I want to set the thickness of the line. How do I do it? Is it a property of the Pen or a...

24 Sep at 18:23

How to know if a line intersects a rectangle

How to know if a line intersects a rectangle I have checked out this question, but the answer is very large for me: [How to know if a line intersects a plane in C#? - Basic 2D geometry](https://stacko...

23 May at 12:0

Outline text with System.Drawing?

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; var imageEncoderParameters = new E...

How do I invert a colour?

How do I invert a colour? I know that this won't directly invert a colour, it will just 'oppose' it. I was wondering if anyone knew a simple way (a few lines of code) to invert a colour from any given...

7 Jan at 14:50

Compare two Color objects

Compare two Color objects This is VS2010 and .NET 4.0. I'm trying to compare two `System.Drawing.Color` objects. The value of `mStartColor.ToArgb()` is `16777215`. The value of `Color.Transparent.ToAr...

21 Jun at 07:35

OutOfMemoryException: Out of memory - System.Drawing.Graphics.FromImage

OutOfMemoryException: Out of memory - System.Drawing.Graphics.FromImage I get Out of Memory exception when using System.Drawing.Graphics.FromImage (using latest versions of .NET software on Windows 20...

8 Sep at 12:3