[lazarus] How to implement TCanvas.Pixel[x,y] functionality in 500 easy steps...
Luis R. Hilario
luis at luis-digital.8m.com
Sat Feb 24 23:47:56 EST 2001
That easy!
I thought that they were 501 steps :)
Tomorrow I will watch all that (1:00 AM ZZZzzz).
Shane Miller wrote:
>
> How to implement Canvas.Pixels..
>
> If you look at canvas.inc you will see that the function GetPixel already
> exists so I'm not sure that it needs to be "implemented". Perhaps it simply
> needs to be debugged. In getpixel there is a CNSendMessage call that sends
> a LM_GetPixel message and a MSG variable to gtkobject.inc. The LM_GetPixel
> causes a call to GetPixel and in that function the PixColor of the
> TLMSetGetPixel should be set.
>
> Again, I'm not sure that it's working but it is written already. The
> SetPixel is also written. Whether it's working or not I'm not sure. All we
> need is someone to debug it for us (put in a few writeln's and see what's
> coming out of it).
>
> Shane
>
> ----- Original Message -----
> From: "Luis R. Hilario" <luis at luis-digital.8m.com>
> To: <lazarus at miraclec.com>
> Sent: Saturday, February 24, 2001 11:07 AM
> Subject: [lazarus] Pixels
>
> > Hello,
> >
> > Which is the sequence that is due to follow to implement something?
> >
> > For example:
> > How one implemented the rectangles or the lines?
> > Which archives are modified first?
> >
> > I am interested in drawing pixels (and apparently somebody more).
> >
> > Also this can be useful to learn to implement other things.
> >
> > Please to enumerate the steps, like is a boy who learns to walk.
--
|-----------------------------|
| Luis R. Hilario |
| http://www.luisdigital.2y.net |
|-----------------------------|
More information about the Lazarus
mailing list