News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Video buffer in Windows XP+

Started by alex-rudenkiy, July 17, 2016, 07:33:16 AM

Previous topic - Next topic

alex-rudenkiy

Hello. Please tell me whether my masm refer to a line in the output video buffer to paint like a pair of blue pixels possible? Provided that the program runs on windows xp and above. In dos you can do all this reading about 13h and 10h interrupt, but it's all repeat runs on dos and above. In principle, under the dos could do it all by reading about 13h and 10h interrupt, but it's all repeat runs on dos and above :(

jj2007

SetPixel for single pixels, SetDIBits if speed is important.

alex-rudenkiy

How to paint a pixel on top of everything? :)

jj2007

Post your complete source, then we'll may be able to help you.

alex-rudenkiy

Source is not present at me, I'm just interested in theory :biggrin:

Siekmanski

It depends on what you want to do with graphics.
You can use SetPixel and SetDIBits for simple windows drawing as jj2007 wrote.

If you want realy high performance graphics you're better off with for example Direct3D.
Direct3D can also do fast 2D drawing and works on WindowsXP and up. ( accessing the video buffer directly )
Creative coders use backward thinking techniques as a strategy.

alex-rudenkiy

Well, I wonder whether it is possible to put a hook to send pictures from windows on the graphics card or the fact that the image displays on your computer and prepared windows paint a couple of pixels on top of EVERYTHING.

Siekmanski

GetDesktopWindow retrieves a handle to the desktop window.
Creative coders use backward thinking techniques as a strategy.