PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

drawing and graphics

hi guys

I wonder if anyone can help? Id like to be able to plot pixels and draw lines etc and be able to save the result as a bmp.

Ive started with a form in PIDE with an image control on it.

Any hints on whats next?
How do i affect the image control?

Awaiting your suggestions.

regards
Andy

(Ive entered this from mcdonalds on my p800!!!)
Hi Webba,

Check the main.ppl for a start. I draw to the form on a WM_PAINT event. There should be enough functions defined in the Windows.ppl to give you a good start.

Ex:
SetPixel, MoveToEx, LineTo, Rectangle, CreatePen, FillRect, Ellipse, GetDC, BitBlt, CreateBitmap...

Regards,
Kornalius
Thanks Kornalius! :D