pixel in the screen in assembly - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

pixel in the screen in assembly

Hi everybody!

Does somebody knows how to put a pixel in the screen in assembly?
... and how to move this pixel though the screen?

thanks!

Comments

  • Josh CodeJosh Code Posts: 675Member
    : Hi everybody!
    :
    : Does somebody knows how to put a pixel in the screen in assembly?
    : ... and how to move this pixel though the screen?
    :
    : thanks!
    :

    I assume you want to do this in Windows.


    I've wanted to do something like that for a while, now. I wanted to do it really efficiently like you would with DirectX. I'll explain the slow way of doing it.

    You have to get the handle of the desktop, using GetWindow(0).

    You can then pass the handle into the SetPixel api.

    You'll see how slow SetPixel is, if you try doing this with a few thousand pixels(ie. a 200x200 rectangle).


    If you want to do this in dos, try posting in the x86 assembler programming board. There are people that have asked similar questions. There are ways of doing it by writing over video memory. Dos is probably better for graphics programming in assembly.
  • AurelianAurelian Posts: 13Member
    : : Hi everybody!
    : :
    : : Does somebody knows how to put a pixel in the screen in assembly?
    : : ... and how to move this pixel though the screen?
    : :
    : : thanks!
    : :
    :
    : I assume you want to do this in Windows.
    :
    :
    : I've wanted to do something like that for a while, now. I wanted to do it really efficiently like you would with DirectX. I'll explain the slow way of doing it.
    :
    : You have to get the handle of the desktop, using GetWindow(0).
    :
    : You can then pass the handle into the SetPixel api.
    :
    : You'll see how slow SetPixel is, if you try doing this with a few thousand pixels(ie. a 200x200 rectangle).
    :
    :
    : If you want to do this in dos, try posting in the x86 assembler programming board. There are people that have asked similar questions. There are ways of doing it by writing over video memory. Dos is probably better for graphics programming in assembly.
    :



    Thanks, man! Do you know where i can find information about these Windows API, you mentioned?

  • Josh CodeJosh Code Posts: 675Member
    : Thanks, man! Do you know where i can find information about these Windows API, you mentioned?
    :

    This site gives you information on a bunch of windows api functions.
    http://216.26.168.92/vbapi/ref/funca.html

  • AurelianAurelian Posts: 13Member
  • ChojinChojin Posts: 39Member
    there is a very good sdk about directX , that includes the directDraw and a lot more things , it is on the microsoft page

    www.microsoft.com

    for realy assemnly there is a very good site and with very good tutors (about every thing and about the directX api :))

    http://win32asm.cjb.net/

    sorry about my english :)




  • AurelianAurelian Posts: 13Member
    : there is a very good sdk about directX , that includes the directDraw and a lot more things , it is on the microsoft page
    :
    : www.microsoft.com
    :
    : for realy assemnly there is a very good site and with very good tutors (about every thing and about the directX api :))
    :
    : http://win32asm.cjb.net/
    :
    : sorry about my english :)
    :
    :
    :
    :
    Thanks for your tip, man!
    :

Sign In or Register to comment.