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

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.