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

Symmetric Canvas Drawing in Delphi
Fancy Delphi Application Contest Entry #44 by Kevin Alpin

By Zarko Gajic, About.com

Symmetric Canvas Drawing in Delphi - Fancy Delphi Application Contest Entry #44

Symmetric Canvas Drawing in Delphi - Fancy Delphi Application Contest Entry #44

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.

Symmetric Canvas Drawing

Drawing is the creation of a single, specific graphic element, such as a line or a shape, with code. In your code, you tell an object to draw a specific graphic in a specific place on its canvas by calling a drawing method of the canvas.

In symmetric canvas drawing as you move your move (holding the mouse button) a "line" is being drawn on the canvas - and is being symmetricaly copied over x and y axis.

"Symmetric Canvas Drawing" was submitted by Kevin Alpin.

Do you have a FDA(C)? Submit your Delphi code to the Fancy Delphi Application Contest.

Zarko Gajic
Guide since 1998

Zarko Gajic
Delphi Programming Guide

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
  6. Symmetric Canvas Drawing in Delphi - Fancy Delphi Application Contest Entry #44

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

All rights reserved.