read from mem! get color of x,y (getpixel) - 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.

read from mem! get color of x,y (getpixel)

i havent learned how to manipulate with the memmory

very good yet! and absolutely not asm!

i want a fast routine!!!


please e-mail me dont write here since i wont check

out this place again!! i will forget anyway!


URL:http://www.comtech-data.se/privat/wizera

Comments

  • : i havent learned how to manipulate with the memmory

    : very good yet! and absolutely not asm!

    : i want a fast routine!!!


    : please e-mail me dont write here since i wont check

    : out this place again!! i will forget anyway!





  • If your using pascal, try...



    { ====================================== }

    ...code



    { get a pixel color at x,y }

    C:=MEM[$A000:X+Y*320];



    { set a pixel at x,y with color c }

    C:=15; { color white with default palette }

    MEM[$A000:X+Y*320]:=C;



    ... code

    { ====================================== }



    If your not using Pascal, then sorry for the waste of time.



    Lance




Sign In or Register to comment.