Color of a screen pixel: Difference between revisions
Content added Content deleted
({{omit from|AWK|Does not have this functionality in the language}}) |
No edit summary |
||
Line 216: | Line 216: | ||
=={{header|C++/CLI}}== |
=={{header|C++/CLI}}== |
||
{{incorrect||Does not identify library or platform dependencies}} |
|||
Pixel's color from cursor position: |
|||
<lang cpp> |
<lang cpp> |
||
using namespace System; |
|||
POINT pt; |
|||
using namespace System::Drawing; |
|||
pt.X=Cursor->Position.X; |
|||
using namespace System::Windows::Forms; |
|||
pt.Y=Cursor->Position.Y; |
|||
⚫ | |||
[STAThreadAttribute] |
|||
⚫ | |||
int main() |
|||
⚫ | |||
{ |
|||
⚫ | |||
Point^ MousePoint = gcnew Point(); |
|||
⚫ | |||
Control^ TempControl = gcnew Control(); |
|||
⚫ | |||
MousePoint = TempControl->MousePosition; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
</lang> |
</lang> |
||