diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-1903F18A-F095-5494-AF32-423AE7F27252.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-1903F18A-F095-5494-AF32-423AE7F27252.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,30 @@ + + + + + +Drawing Points

This topic provides examples that demonstrate how to draw a single pixel and how to draw a point with a pen three-pixels wide.

Drawing a single pixel

Use Plot() to draw a single point in the center of the screen.

... +TPoint screenCenterPoint=rect.Center(); // the center of the screen +... + +// draw a single pixel point in the center of the screen +gc.Plot(screenCenterPoint); +...
Drawing a point three pixels wide
  1. Define a size for the pen tip as a TSize.

  2. Use SetPenSize() to increase the pen width from the default (single pixel). This shows how a plotted point three pixels wide is much easier to see than a single pixel. It is in fact drawn as a "+" shape.

  3. Use Plot() to draw a point in the center of the screen.

... +TPoint screenCenterPoint=rect.Center(); // the center of the screen +... + +// Set up a "bold" size for the pen tip to (default is 1,1) +TSize penSizeBold(3,3); +... + +// draw a "bold" point 3 pixels across +gc.SetPenSize(penSizeBold); +gc.Plot(screenCenterPoint); +...
Drawing + to a Graphics Context Tutorials Drawing and Graphics Contexts
\ No newline at end of file