1. Home
  2. Computing & Technology
  3. Delphi Programming

Delphi Graphics Programming

Delphi Graphics Programming knowledge base - articles, tutorials, tips and techniques.
Writing a Diary/Planner (PIM) Type Delphi Application
In the process of writing a diary/planner (PIM) type application, I came across the need for a year planner. You know the kind of thing, much like a full year calendar showing ALL the days for ALL the months of a given year. Here's a step-by-step to creating your own year planner in Delphi. Full source code included.
Symmetric Canvas Drawing in Delphi
To draw graphics in a Delphi application, you draw on an object's canvas, rather than directly on the object. The canvas is a property of the object, and is itself an object. Wanna learn more about the TCanvas properties and mehods? Meet "Symmetric Canvas Drawing" - a tool to teach 6th formers about using the canvas and drawing on it in Delphi.
Proportionally Resize an Image - Creating Thumbnail Graphics
Here's an idea for your next application: create a "form picker" to let users easily select and navigate through open forms by displaying thumbnails of them all in a dialog window. Let's first see how to create a thumbnail of a form image.
Get and Set Screen Resolution (Display Device Modes)
Changing the Windows display mode settings (resolution and color depth) from Delphi code. Plus: how to handle the WM_DISPLAYCHANGE Windows message sent to all windows when the display resolution has changed.
Working with GIF images in Delphi
Working with GIF images in Delphi. Need to display an animated GIF image in a Delphi application? Even though Delphi does not natively support GIF image files formats (like BMP or JPEG) there are a few great (free source) components available on the Net, which add the ability to display and manipulate GIF images at run as well as at design time to any Delphi application.
Tips and code samples
Convert between graphics formats, draw on Desktop, grab screen shots, rotate, fade, grayscale, ...
Capturing screen shots including the mouse cursor
Here's how to take a screen shot of the Desktop window including the mouse cursor, using Delphi code.
Weird Delphi
Custom shaped forms, a funny way to distinguish yourself from the others! Plus: custom shaped buttons and various form enhancements.
Picture Motion - Double Buffering
Delphi Programming concepts of Double Buffering, technique that is used to prevent flicker when drawing onto the screen.
GDI Graphics In Delphi
From simple lines to direct API calls: the ultimate tutorial to GDI graphics in Delphi. This tutorial will introduce you to some of the techniques in the GDI Delphi drawing. Look for: drawing lines and shapes, drawing pictures, flicker-free drawings, off-screen bitmaps, GDI drawings the API way...
Get and Set Display Device Modes
Changing the display mode settings (resolution and color depth) from Delphi code.
Zoom
Write an application that is able to zoom in portion of your desktop screen, like a loope.
Twain and Delphi
Acquire images from scanners, cameras and image capture devices using Delphi. See how to import (and wrap in a component) an image scan control within Delphi.
Screen Shuffling with Delphi
Delphi code that divides the current desktop into blocks and then swaps the blocks. It includes an option that lets you adjust the shuffling speed, and the size of the blocks. Great intro to sliding puzzle game or to screen saver development.
Finding the color depth of a canvas
Find out about the number of colors available for a given canvas.
Graphics in Delphi
[ftp|.pdf ~ 1.9 MB] This bonus chapter for Mastering Delphi 5 includes painting on a form, animated buttons, an image viewer, drawing over a bitmap, graphical grids and games, using a Tee Chart, and Windows metafiles.
Rotations in 2D
Find out about. "Rotation of a graph is done by rotating the vectors. An image is rotated by rotating the pixels."
3D Fractal Landscapes
Fractal landscape generation, 3D perspective transformations, fixed point arithmetic, and Delphi TCanvas graphics.
What is a Graphical Environment
Lear how to use the TCanvas and TShape objects to draw simple geometric forms to the screen. Plus more about using colors, calculating coordinates, and working with rectangles and ellipses. Chapter 5 of "Delphi Unleashed 1.0: 16 Bit"
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Advanced Delphi Techniques
  5. Graphics Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.