what is the equivalent of the 'putpixel' command in win c++
programs? i'm using bc4.52
thx
This is a discussion on simple graphics in c++\winmillenium within the Windows Programming forums, part of the Platform Specific Boards category; what is the equivalent of the 'putpixel' command in win c++ programs? i'm using bc4.52 thx...
what is the equivalent of the 'putpixel' command in win c++
programs? i'm using bc4.52
thx
That would have to be the cunningly titled SetPixel() API
Use Windows.hCOLORREF SetPixel(
HDC hdc, // handle to DC
int X, // x-coordinate of pixel
int Y, // y-coordinate of pixel
COLORREF crColor // pixel color
);
In the WIN32 API:
Code:SetPixel(hdc, x, y, crColour);
Please direct all complaints regarding this post to the nearest brick wallHave a nice day.
dammit, you posted while I was typing...GRRRR!!
Please direct all complaints regarding this post to the nearest brick wallHave a nice day.