Questions tagged [system.drawing]

System.Drawing is a namespace of the .NET framework. It provides access to GDI+ basic graphics functionality.

System.Drawing is a namespace of the .NET framework. It provides access to GDI+ basic graphics functionality.

Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions. For a supported alternative, see Windows Imaging Components.

References

1129 questions
-2
votes
1 answer

how to fill C# Fill rectangle From bottom to top?

I have drawn vertical Rectangle but i want to fill it from bottom to top. here is the code i used System.Drawing.Drawing2D.LinearGradientBrush linGrBrush = new System.Drawing.Drawing2D.LinearGradientBrush( new Point(0, 12), …
Bhushan
  • 95
  • 3
  • 13
-2
votes
2 answers

How to draw rectangle in negative quadrant in windows forms c#

I want to draw the rectangle in negative quadrant (left and top side of the origin point)... any help please
Murugesan
  • 37
  • 3
  • 6
-3
votes
1 answer

Porting image drawing code from WinForm to WPF

I did some prototyping in WinForm app and the code works for me: using System.Drawing; using System.Drawing.Imaging; ............. Image img0 = null; img0 = Image.FromFile(filename); PropertyItem[] propItems = img0.PropertyItems; However when I…
Joe
  • 118
  • 2
  • 6
-4
votes
2 answers

How to find base color by hex color value in C#

Given a Hex color code how to categorize the color as whether it belongs to the Red/Green/Yellow/Pink/Orange/Blue in C#?
user581157
  • 1,327
  • 4
  • 26
  • 64
1 2 3
75
76