

Main Categories
Most popular tutorials
Latest tutorials on Geekpedia
RSS and Klip feeds
More Resources
CIO Decisions Magazine
We have 139 Graphics & GDI+ tutorials, you can see below:
An article on 3-D graphics and C#
An article describing how to make a photo album like program.
An implementation of the classic asteroids game using 2D Drawing classes
How to use MeasureCharacterRanges to calculate the bounding rectangles of charaters in a string, to allow characters to be placed along curves.
Discusses how to convert image formats in .NET, exemplified by a WebService that converts image formats on the fly!
Here\'s the code to implement a basic graphic user interface to paint, and then edit, lines on a PictureBox.
An article to describe the ways to avoid flicker when drawing.
Web Image Browser with directory explorer and thumbnail/web friendly on-the-fly image creation and caching.
Using GDI+ to parse TIFF files.
Code to create cool looking text for use in your application.
This article demonstrates a method to draw POSTNET barcodes.
This program explores how trees are made using a simple fractal algorithm
An article about how to enhance current image characteristics.
GDI+: Getting control of MeasureString, DrawString and MeasureCharacterRanges.
ImageConverter allows images to be resized and written to a selected image format.
Tetris created with GDI+
A small app to generate random images using various C# drawing functions.
This example will show you how to use doublebuffering and hopefully allows you to make images move across your screen.
Converting a 2D chart into a 3D chart
Drawing spheres on a Panel using conversion between pixel and logical metric units.
Describes how to save images into a multi-page TIFF file and append images to an existing TIFF file by applying CCITT4 compression.
How to load/display images in a form in C#, explained with the code of a complete image viewer application
Sample code on how to create flicker-free graphics with GDI+.
This is a simple viewer application which allows you to apply basic operation on images such as Rotate, Flip, ROI (Region of interest) zoom and Panning.
Demonstrates drawng rubber band rectangles using GDI in a .NET GDI app
Creating fuzzy drop shadows for GDI+ drawn objects.
Demonstrates how to create per pixel alpha blending windows
A basic 3D engine built using C# and the .NET platform
In this article, I describe how you can create an image that will change to another if it is selected in Internet Explorer.
Fading an Image Away
A task-oriented review of an animation library and the application which uses it.
This sample code computes the width of the string, as drawn by Graphics.DrawString
This article describes how to convert a TTF file\'s character to BMP.
Alternate Antialiasing in GDI+
Describes how to implement flicker free drawing using C# and GDI+.
An implementation of Rounded Rectangle in C# which could be used to create XP-like buttons and rounded border.
A method for programatically determining the appropriate foreground color based on the specified background color
Basic sprite animation, clipping, z-ordering in C# using GDI+
An article on ray casting in a 2D tile-based environment.
Create Code128 barcodes for WinForms or ASP.NET.
The fourth installment covers how to write a filter that resizes an image, and uses bilinear filtering
This article describes a very easy approach to building an image conversion utility that will permit the user to open a supported image type and convert it to another supported image type.
Shows how to use different brushes and write owner drawn listbox
An article on blending of images using raster operations as well as simulating blending modes like those found in Photoshop.
The first in a series of articles which will build an image processing library in C# and GDI+
How to add bitonal image editing support to your appliactions.
The third in a series of articles which will build an image processing library in C# and GDI+
The second in a series of articles which will build an image processing library in C# and GDI+.
An article on DIB to Bitmap conversion.
In the fifth installment, we build a framework for generating filters that work by changing a pixel\'s location, rather than colour.
Discusses and demonstrates flood fill algorithms in C# with GDI+.
An article on alpha blending and transparency
An article on Compositing, ColorMatrix, and ImageAttributes
Shadow: a program to add drop shadows to images.
The Aqualizer: a program to create aqua buttons.
A discussion of the HSL color space, including code for a color picker and image filters
An article on Compositing, ColorMatrix, and ImageAttributes
An article on polygon collision detection. Can be used to implement collision between sprites in a 2D game. The algorithm can also be extended to 3D.
A tool and library for image processing.
A library which draws 3D images on any GDI+ Graphics object.
An article on the practical uses of dynamic graphics
An analog clock using anti-aliasing & double-buffering which can be resized, even into elliptical shapes.
This article descibes ways to creating a non rectangular form using GDI+.
An article on creating a tetris like game using object-oriented analysis and GDI+.
Shows how to create a custom scrolling label control with GDI+ and proper double buffering
This article discusses a little weakness in GDI+ filters and shows a class for top-quality image resizing.
How printing works in Multipad, a Notepad clone.
A tutorial with examples of how to draw different things on a form using OnPaint.
Demonstrates a method to draw UPC-A barcodes using C#.
This tutorials demonstrates how to use the PDFRasterizer.NET control to convert PDF to raster images, to display PDF in your Windows application and to silently print PDF documents.
This article shows you how to create a PDF document from a multipage TIFF document in C#.
A tutorial about writing an image to ASCII converter.
The System.Drawing namespace, which contains types that help you with drawing, plays an important role in Windows programming. You need its members to draw a custom control user interface and for sending text and graphics to a printer. Even when you are only using standard controls on your form, you have used some of its members, probably without realizing it. Understanding the System.Drawing namespace enables you to write better -- and probably faster -- code. Here is a 10-minute crash course to familiarize you with it
Like Java, C# provides us with a rich set of classes, methods and events for developing applications with graphical capabilities. Since there is not much theory involved, we can straight away jump to an interesting example (Listing - 1), which prints \"Welcome to C#\" on a form.
Covers the basics of how to plot three dimensional points onto a two dimensional representation.
Describes a few of the methods for conversion and transformation available to convert an image from RGB Color to Greyscale.
Nowdays everybody owns a digital camera with a high resolution, so when our application has to handle photos (e.g.: we want to keep an small identity card photo), the user use to send a 3 mega pixels high quality one, ... and most of the times users don\'t know how to make them smaller or they don\'t want to bother about that. What can we do ? Just let .net scale the image (keeping the aspect ratio), so we can show it and save it to disk with the desired resolution
Use of GDI+ Matrix class to perform image transformation.
This article describes the process of overlaying a Watermark image on top of a photograph using GDI+ and C# for .NET
This article demonstrates how to use GDI+ to create a page turn effect.
GDI+ is next evolution of GDI. In Visual Studio .NET, Microsoft has taken care of most of the GDI problems and have made it easy to use. The first class we must discuss is the Graphics class. After the Graphics class, I will discuss other useful GDI+ classes and structures such as Pen, Brush, and Rectangle. The final part of this tutorial are some examples in C#.
Learn how to apply antialiasing on shapes using GDI+. Uses SmoothingMode and PixelOffsetMode enumerations.
This tutorials demonstrates how to use the pdfRasterizer.NET control to convert pdf to raster images, to display pdf in your Windows application and to silently print pdf documents.
A utility class / class library that could be used for drawing 3D pie charts.
This is a Snake game written using C# 2.0 and GDI+. To run this application, you must have .NET Framework 2.0.
Continuation of an article on Compositing, ColorMatrix, and ImageAttributes.
An article on Compositing, ColorMatrix, and ImageAttributes.
An article on alpha blending and transparency, and the creation of a color-maker.
This article describes on how to create bitmap regions for WinForms and buttons.
Class library for drawing 3D pie charts by Julijan Sribar.
Describes how to draw snowflakes using fractals and contains a nice snow screensaver.
Overview of using the OpenGIS Web Mapping Service to retrieve maps from the web.
An image synthesis algorithm using noise and interpolation.
Rotates an image without having to worry about cropping the edges.
Capturing an image of the desktop or its work area, of a control or its client area, of what's underneath a control or its client area and converting images from one format to another and converting an image to usable icon.
This article describes the process of overlaying a Watermark image on top of a photograph using GDI+ and C# for .NET.
This article describes the various techniques used to resize a photographic image with GDI+ and C#+ for .NET.
Thumbnail Generator application supporting a bunch of image file types (for both: source images and target thumbnails), fixed target image size as well as ratio calculation, and full internationalization.
Looking for a way to draw 2D line graphs with C#? Here's yet another charting class library with a high degree of configurability that is also easy to use.
The attached source code is a stop watch written using C# and GDI+.
This article shows you how to use GDI+ classes defined in the .NET Framework class library to apply transformations on text.
This article discusses the color transformations and how to apply Color Matrix on image colors to provide various effects such as gray scale effects, reduce or increase the contrast, brightness, or redness of an image.
Image transformation is exactly the same as any other transformation process. In this section we will see how to rotate, scale, translate, reflect, and shear images.
Matrices play a vital role in the transformation process. In GDI+, the Matrix class represents a 3×2 matrix that contains x, y, and w values in the first, second, and third columns, respectively.
A transformation is a process that changes graphics objects from one state to another. Rotation, scaling, reflection, translation, and shearing are some examples of transformation.
This article and the sample code shows you to draw and print a math graph using GDI+ and C#.
This is a less complex, nevertheless interesting example of how to use the same board to create a simple voltmeter.
How to make puzzles with hidden words contained in a matrix of letters.
This article describes how to create a virtual clock in C#. The hands of the clock are drawn using GraphicPaths.
Have you ever thought of streaming thumbnails just by passing query string indicating width or height of thumbnail you need, and most importantly passing those to image itself?
Trackbars and scrollbars are convenient ways of displaying a data range. The trackbars and scrollbars that ship with Visual Studio .NET, however, are a little lacking in aesthetics. We at Mycos set out to develop a high-performance dynamic trackbar that tool advantage of the GDI+ api and some of our existing drawing utilities.
When I started writing web applications using .NET, I found myself in need to dynamically create thumbnails of images that could be uploaded by the user or pulled from a database.
This article shows you how to implement ray tracing in C# and .NET.
Spiro designer is a partial implementation of Spirograph. Spiro Designer uses the Matrix and GraphicsPath classes with their Transform and Rotate methods to build a spiro.
Currently I am developing a shareware application for generating image galleries for the web.
I'm writing this article in response to a question on discussion forums, How do I view multiple files on top of each other?
This article shows you how to draw transparent images and shapes.
After I created my article on Form Capture, I seemed to get quite a few inquiries on how to do a more useful function using .NET: Screen Capture. It turns out that screen capture is done in a much similar fashion.
This article describes a simple Windows control written in C# that simulates a wheel knob like that on your walkman used to change volume. The control is drawn using animation technique.
This program shows you how to draw a sphere or a cube and rotate it different speed and different axis.
In this article, I'll give you an example of creating your own control.
As I was trying to think of an article to write on GDI+, I started looking through some of my old programming books and came across Tricks of the Game Programming Guru.
In this article I would like to show you code that would create exploded pie chart and implementing click through functionality to that chart.
This simple application illustrates how GraphicsPaths can be animated to look like something is moving across the screen.
Here is an example of creating simple charts using GDI+ commands in C#. I have used the random class to create 5 random percentage values. I then use GDI+ to plot these values on a chart.
Every good game needs to display your record breaking score. Before I embark on writing the next killer game in C#...
In most cases, GDI+ speeds up your programming of Graphics because (1) It is not a thin veneer over the Windows SDK (2) It makes sense. However, whenever you lose granularity to create a simpler to use architecture, you tend to lose some functionality.
With the popularity of digital cameras and the increase of digital archive web sites allowing you to buy images to use its handy to be able to add a copyright to your image. However you don’t want to just write the word copyright across your image do you? No, in the world of .Net something cleverer is needed.
This project contains a UserControl that allows you to place an Image inside and scroll around the Image.
This article covers a fairly practical aspect of using a computer - dealing with forms.
The System.Drawinging.Pen and System.Drawing.Font classes represent pen and font objects in GDI+.
After finishing a text program (lottery) its time for some fun. Everytime a have to work with a new language.I write a small program to bounce some balls in a box.
Transforms are matrices that allow you to rotateand translate your graphics shapes. In this example we are going to rotate a very powerful element in C# called the GraphicsPath.
Sometimes its desirable to get those graphics moving a bit and this control should help you do just that.
For those of you that don't want to go out and buy a fancy business card utility, this may prove to be just the trick for designing easy colorful business cards.
One of the wonderful features in C# is it is finally easy to create components...
Attached project is a paintbrush like application which let you draw graphics object... all in C#
This sample project shows how to draw various graphics objects on a Form using GDI+ objects...
This project contains a UserControl that allows you to place an Image inside and scroll around the Image.