[lazarus] How to draw pixels ?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Oct 3 13:05:51 EDT 2001


On Wed, 3 Oct 2001 11:53:01 -0400
Inpromptu <inpromptu at operamail.com> wrote:

> How to draw pixels ?

Just the same like lines, circles and boxes. Any component with a canvas can be drawn onto:

Canvas.Pixels[x,y] := clRed;

But these pixels are not stored. You must draw them in every OnPaint event of the component, which can be pretty slow.


Mattias Gaertner






More information about the Lazarus mailing list