C# Corner

Related resources for System.Drawing
  • Display and Hiding SIP on Pocket PC in VB.NET12/18/2018 2:49:52 AM. When you get your hands on a Pocket PC for the first time you have to wonder just how the heck do you enter information.
  • Saving a Screenshot Using C#5/18/2015 8:15:16 PM. This article explains the entire scenario for creating an image containing a screen content, like windows and other details on the screen.
  • Color Detecting in an Image in C#11/25/2012 5:10:00 PM. This article shows how to detect a specific color in an image in C#. A sample code is also attached along with this article for your reference.
  • Adding a control to a Form programmatically11/10/2012 2:36:29 AM. In this article I will show you how to add Windows controls to a Form programmatically. This is very useful to programmers who do not use Visual Studio or other IDE.
  • Web based colour tool in VB .NET11/10/2012 2:04:13 AM. This article gives you information about the System.Drawing namespace, which is very useful while working with colours in your .net projects
  • Synchronization in Multi-threaded Applications in VB.NET11/10/2012 1:58:41 AM. This article demonstrates the important concept in multithreading, synchronization. In this article and attached source code, you will learn how to write multi-threaded synchronized applications.
  • Convert a DataGridView to a Bitmap in VB.NET11/8/2012 9:46:03 AM. This article describes an easy approach to converting a DataGridView control into a Bitmap.
  • GDI+ Namespaces and Classes in VB.NET11/8/2012 8:29:09 AM. In this article I will explain about GDI+ Namespaces and Classes in .NET.
  • Dots Game10/3/2012 11:06:25 AM. Here is a dots game developed using C# and GDI+. New version of the game will be coming soon.
  • Windows Forms Without VS .NET5/19/2012 4:48:43 AM. This article explains how to write windows forms application without using Visual Studio .NET IDE.
  • Working with Brushes and Pens in GDI+1/30/2012 11:07:57 PM. In this article I will explain about working with brushes and pens in GDI+.
  • System.Drawing.Drawing2D Namespace in C#12/14/2010 12:01:39 AM. The System.Drawing.Drawing2D namespace provides advanced two-dimensional and vector graphics functionality. The following table lists some of the important classes in theSystem.Drawing.Drawing2D namespace, and their descriptions.
  • Advanced 2 D Graphics in GDI+ 3/16/2010 12:27:39 AM. In this article I will explain about Advanced 2 D Graphics in GDI+.
  • Saving Images & Image Format Properties in GDI+ 1/27/2010 11:13:55 PM. In this article I will explain about Saving Images & Image Format Properties in GDI+.
  • Hatch Brushes in GDI+ 1/25/2010 1:41:30 AM. In this article I will explain about Hatch Brushes in GDI+.
  • Advanced Typography in GDI+12/31/2009 7:07:56 AM. In this article I will explain about Advanced Typography in GDI+.
  • Font in .NET in context of GDI classes 12/28/2009 12:42:19 AM. In this article I will explain about Font in .NET in context of GDI classes
  • Image class methods and properties in GDI+12/7/2009 2:26:41 AM. In this article I will explain about image class methods and properties in GDI+.
  • Working with Images in GDI+12/3/2009 5:23:39 AM. In this article I will explain about working with images in GDI+.
  • How to write a GDI+ Application11/4/2009 3:20:51 AM. In this article you’ll learn how to write your first GDI+ application, step-by-step. You will create a Window application and draw a few simple objects.
  • GDI+ Namespaces and Classes in .NET10/29/2009 6:24:47 AM. In this article I will explain about GDI+ Namespaces and Classes in .NET
  • Web based colour tool for .NET10/2/2007 5:15:35 AM. The .NET Framework provides us with over 100 colours to use within the System.Drawing namespace. In order that we know exactly what all these colours look like here is a simple web based tool that uses Reflection to loop through all the colours with the System.Drawing.Color struct and print them to the page.
  • Generating Images Dynamically in ASP.NET7/11/2007 7:16:09 AM. This article explains how to create images dynamically at run-time in ASP.NET.
  • Chart Recorder1/31/2007 7:03:42 AM. This is chart recorder program developed using C# and GDI+.
  • Image Viewer in C#1/31/2007 6:48:06 AM. ImageViewer lets you to view images of types bmp, gif, jpeg, ico, wmf, emf. It also allows you to convert images to bmp, gif and jpeg formats. This application illustrates the usage of PictureBox class, Bitmap class etc.
  • Find Files in C#1/30/2007 4:48:07 AM. I have developed a small application in c#, which helps in searching u'r hard disk for files of the desired extention.
  • Convert a DataGridView to a Bitmap1/18/2007 3:11:58 AM. This article describes an easy approach to converting a DataGridView control into a Bitmap.
  • Image Processing in C#8/30/2006 9:23:34 AM. This application explains basic concepts of image processing including brightening, converting to gray and adding notes to an image using C# and GDI+.
  • C# Corner Logo: 3D GDI+ Effect8/30/2006 8:30:15 AM. "It's time to redesign the logo. Let's do some 3D work here". That's what Owen said an hour ago. And after that he drew a 3D C# logo on the board.
  • Advertising Board8/28/2006 11:45:52 AM. This article shows how to build cool component for advertising on your windows forms.
  • Antialiased Analog Clock4/5/2006 2:24:36 PM. This is an antialiased analog clock sample written in C# using GDI+. It has no flicker at run time because of using Double Buffering technique, and it has many properties that you can customize it such as tick and hand colors, gradient background color, custom date and hand styles.
  • Working with GDI+ Brushes 2/8/2006 4:25:43 AM. This tutorial explains how to work with texture, solid, gradient, and hatch brushes.
  • Meal Scheduler in C#2/6/2006 6:23:35 AM. In this application once you enter your meal timings. A message box will appear on the screen while you are working and remember you about your meal with light sound.
  • Simple Game Developed in C#2/2/2006 6:57:37 AM. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • Hangman: Using GDI+ in ASP.NET Applications2/2/2006 5:40:52 AM. This example shows how you can combine GDI+ commands on a web form.
  • Shuffle Game for Beginners2/2/2006 5:24:45 AM. This code sample is a GDI+ shuffle game aimed for beginners. Attached zip file includes the exe and the Shuffle.cs file.
  • Time Ticker2/2/2006 4:14:19 AM. Graphics Class encapsulates a GDI+ drawing surface. The FromHWND method is used to create a new instance of the Graphics class from a window handle. Clear method fills the entire drawing surface with the specified RGB color by using Color class. DrawString method draws a string using Font and SolidBrush classes.
  • Pocket Trilma.NET1/30/2006 11:41:28 PM. Pocket Trilma.NET is a Pocket PC version of project Trilma.NET.
  • Rotating the text display on a Pocket PC/Win CE device1/30/2006 11:22:24 PM. In this article let us try to understand why rotating a text/bitmap is difficult to achieve on a Pocket PC 2003/Win CE 4.2 device.
  • Pocket PC 2003 : Saving the Signature as a Bitmap1/30/2006 11:11:26 PM. The System.Drawing.Graphics namespace is commonly used for almost any forms in the desktop framework, hence it has got lots of facilities to draw any kind of image on to the device context.
  • Loading a Form Icon1/19/2006 5:57:25 AM. In .NET framework, the Icon class represents a Windows icon, which is a small bitmap image used to represent an object. The icon class is defined in System.Drawing namespace.
  • Meal Scheduler in C#1/13/2006 5:15:24 AM. This service reminds you when it time to eat your lunch, BF or dinner.
  • Digital Watch In C#12/30/2005 5:24:35 AM. GDI+ sample example shows you how to create a Digital Watch.
  • Enhanced XP Button Control12/28/2005 6:46:08 AM. The enhanced XP style button is very easy to use and it supports rectangle, circle or ellipse shape with image and different colors. This control also inherit most of the properties from the Forms.Button.
  • Mail Merge Program12/28/2005 2:24:11 AM. This is a simple mail merge program. This program reads from 3 different text files (by default) and merge all the info to produce mail documents.
  • Mail Merge Program - Part 212/28/2005 2:17:57 AM. This is a simple mail merge program (Part 2). This program reads from the access database (by default) from a specified table.
  • Rotation Sample12/26/2005 10:55:12 PM. After reading Mike Golds article on transforms I thought I would get things moving a bit!
  • GDI+ Samples: Rectangle, 3D, and Ellipse12/26/2005 10:45:08 PM. This article has three sample examples on GDI+ - Rectangle, Ellipse, and 3D.
  • ShapedForms in C#12/26/2005 7:31:38 AM. Today Windows always appear with a rectangular shape. What if you could have a window that was shaped like a circle, a square or a triangle or any shape you want.
  • Scaling an Image12/26/2005 7:28:47 AM. This code will show You on way to scale an image with .Net Beta 2.
  • A variety of Chart Engines12/26/2005 6:59:21 AM. The original code came from Scott Guthrie’s chart engine example. The differences from original code.
  • Screen Capturing a Form in .NET - Using GDI and GDI+12/26/2005 6:53:55 AM. This article shows way to do form capture in GDI is to get the device context to the screen and bit blast it to a Bitmap in memory.
  • Playing with 3-D Coordinate Space in C#, GDI+ and .NET12/26/2005 6:23:24 AM. This article show to dealing with a 3-D Coordinate System.
  • An Imporved LED Counter12/26/2005 5:52:01 AM. This in an improved version of Keeping Score with LED Counter article originally written by John O'Donnell.
  • An XY Plot User Control in GDI+12/26/2005 5:15:40 AM. This is a follow up of the article written originally for the beta version of .NET. called, A Graphics Component in C#.
  • ImageCanvas Web User Control for ASP.NET12/26/2005 4:25:46 AM. Most of you must have seen picture box control of windows forms. We can set image of picture box control and control will render that image in form.
  • Screen Capture and Save as an Image12/26/2005 2:18:41 AM. The following example source code shows how to capture the screen and save it to an image.
  • MathGraph in C#12/26/2005 2:10:09 AM. This article and the sample code shows you to draw and print a math graph using GDI+ and C#.
  • Significance of Transformation Order12/26/2005 12:47:38 AM. When applying a composite transformation on graphics objects, the order of transformations plays a vital role. This article shows you various aspects of the transformation order and the results.
  • BlackJack12/26/2005 12:30:30 AM. So as a learning experience, I decided to try writing a Blackjack game.
  • Puzzle Control12/26/2005 12:27:40 AM. In this application I had combined the power of C# and AI in order to solve the "puzzle problem".
  • Maze Solver 12/26/2005 12:15:44 AM. Solving mazes is one of those problems, at least with the algorithm I've chosen here.
  • FreeCell Game using Windows Forms12/26/2005 12:07:38 AM. FreeCell is an implementation of the FreeCell card game using Windows Forms.
  • Daleks in .NET12/25/2005 11:53:05 PM. The other night my girlfriend dragged me down to the NYC Public Library claiming that they had a huge Science Fiction movie section. Admittedly my taste in movies and my wife's taste in movies can vary slightly, however, I was willing to take a chance, given that rentals at the library are free as opposed to $4 at the local video store.
  • Project Trilma .NET12/25/2005 11:43:14 PM. In 1883 George H. Monks from Boston designed Halma, an interesting board game with simple rules.
  • Missile Command .NET 12/25/2005 11:35:44 PM. Missile Command .NET is a simple video game written in C# using GDI+ for graphics. It's a tribute to the classic Missile Command game by Atari. I wrote this game to teach myself more about programming in C#.
  • C# Video Poker12/25/2005 11:15:32 PM. This Video Poker game is an imitation of a casino Video Poker machine. It is written using Windows Forms.
  • Lingo Game in C#12/25/2005 11:07:49 PM. It is a Lingo game developed in C#. It is based upon Game Show Network's Lingo but has a few modifications to it.
  • Kovan's Tic-Tac-Toe12/24/2005 7:12:59 AM. This is a tic-tac-toe game written in VB.NET and GDI+.
  • A Chess Program using C#12/24/2005 7:03:14 AM. This is a chess program, made using C#. It has used object oriented concepts and design patterns like Flyweight, Factory and Decorator. Two player can play this game and it has facility to drag-drop pieces. It also shows potential positions of each pieces which is useful for learning.
  • ClickMania Game12/24/2005 6:50:36 AM. This is an old game, first implemented in 1996 or so... It has a great addictive power. You will quickly find out the rules. I used the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • Sokoban Pro Game in C#12/24/2005 6:20:33 AM. Sokoban Pro is a modern version of the classic Sokoban puzzle game. The game rules are extremely simple, yet the game is very challenging and addictive. The rule of the game is to move all the boxes in the right places. You can only push a box, not pull.
  • Accessing Oracle Database12/17/2005 4:54:56 AM. This source code shows you how to connect to an oracle database and do operations such as select, insert, update and delete.
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download