Color of a screen pixel: Difference between revisions

no edit summary
(add c++)
No edit summary
Line 74:
 
=={{header|C++}}==
Pixel' color from cursor position
<lang fsharp>
POINT pt;
pt.X=Cursor->Position.X;
pt.Y=Cursor->Position.Y;
Bitmap ^ myBitmap = gcnew Bitmap(1,1);
Graphics ^ g = Graphics::FromImage(myBitmap);
Anonymous user