The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: VICTORIANOROMAN on April 17, 2005, 04:17:45 PM

Title: Where is the address of the total screen, these which hi see.
Post by: VICTORIANOROMAN on April 17, 2005, 04:17:45 PM
Good morning

Where is the address of the total screen, these which hi see.
Hi can to read pixel colors but at the screen use only. How hi can to do this out my window.

Thank you.   
Title: Re: Where is the address of the total screen, these which hi see.
Post by: MichaelW on April 17, 2005, 04:47:08 PM
Hi Victor,

If you are asking for the address of the actual display buffer, under Windows it is not directly accessible. But you can generally access an emulated display buffer from a DOS program running under Windows.
Title: Re: Where is the address of the total screen, these which hi see.
Post by: mariø on April 17, 2005, 05:33:43 PM
you can use GetPixel API (gdi32) to get any pixel of the screen.
Title: Re: Where is the address of the total screen, these which hi see.
Post by: thomasantony on April 19, 2005, 05:23:56 AM
Likewise use SetPixel to draw a pixel. But these functions are awfully slow AFAIK

Thomas :U