1. writting pixels in WIN32

Does anyone know how to write pixels to the desktop in
WIN32. Like how the 'virtual friend' programs will show
cartoon characters walking across the screen no matter what
window is open. Please, help... Thanks a bunch!! Timmy

new topic     » topic index » view message » categorize

2. Re: writting pixels in WIN32

EU>Does anyone know how to write pixels to the desktop in
EU>WIN32. Like how the 'virtual friend' programs will show
EU>cartoon characters walking across the screen no matter what
EU>window is open. Please, help... Thanks a bunch!! Timmy

It should be fairly easy if you know how to draw on a window. All you
need to do is use some API to get the screen's DIB and draw on it. I
don't have time to look into it right now, but I'll see if I can figure
it out later.

Jeffrey Fielding
JJProg at cyberbury.net
http://members.tripod.com/~JJProg/

new topic     » goto parent     » topic index » view message » categorize

3. Re: writting pixels in WIN32

From Win32Lib.htm:

Screen
Identifes the screen.
Category: Controls
The Screen refers to the computer screen. It is automatically created, and
it most graphic methods that work in Windows will also work with the
screen.

Example:

          -- Draw an 'x' across the screen
          sequence extent

          -- get the screen extent
          extent = getExtent( Screen )

          -- set the pen color to red
          setPenColor( Screen, Red )

          -- draw the lines
          drawLine( Screen, 0, 0, extent[1], extent[2] )
          drawLine( Screen, extent[1], 0, extent[2], 0 )

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu