News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Monitor pixel accesing project

Started by jay20, July 11, 2011, 05:27:27 AM

Previous topic - Next topic

jay20

how to access the pixel of the computer monitor using MASM32 assembler.... anybody who is knowledgeable about this please help me with the codes....

qWord

The question should be: How to access the desktop content/pixels using the WinAPI?
The simples, but also slowest method is to use GetPixel(GetDC(0),x,y) and SetPixel(GetDC(0),x,y,color). A better approach is to copy the Desktop-DC (GetDC(0)) to an memory DC (CreateCompatibleDC+CreateCompatibleBitmap) and then use GetDIBits() for accessing pixel data.
FPU in a trice: SmplMath
It's that simple!