1. Computing

Symmetric Canvas Drawing in Delphi

Fancy Delphi Application Contest Entry #44 by Kevin Alpin

By

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.

©2014 About.com. All rights reserved.