![]() |
|
#1
|
|||
|
|||
|
What is the delphi function for putting a single dot of a colour on the screen?
It needs to use HDC so that I can fit it in with the method I already have for drawing on the canvas of the screen. Thanks Goober |
|
#2
|
|||
|
|||
|
I'm not sure of what you want to do, but here's something I cut from the help file ...
var W: Word; begin for W := 10 to 200 do Canvas.Pixels[W, 10] := clRed; end; Regards /Filip |
|
#3
|
|||
|
|||
|
Delphi does not support a Pixel function with a HDC, you have to use the Windows-API-function
COLORREF SetPixel( HDC hdc, // handle to device context int X, // x-coordinate of pixel int Y, // y-coordinate of pixel COLORREF crColor // pixel color ); It returns the color that was on the pixel before the call. Oregon Ghost |
![]() |
| Thread Tools | |
| Display Modes | |
|
|