Page 1 of 1

control over pixels

Posted: Mon Dec 07, 2009 4:28 pm
by glaedr
Hi,

Is there a way to control every single pixel on the entire screen?
I thought e.g. like this:

Code: Select all

set color of pixel 1002,463 to 255,0,0 --  "1002,463" being the xy-position on the screen and "255,0,0" the RGB-color

...

repeat with k=1 to 768
 repeat with m=1 to 1024
  set color of pixel m,k to random(256)-1,random(256)-1,random(256)-1
 end repeat
end repeat

...

reset pixels
Or is this impossible?

Thanks in anticipation,
Glaedr

Re: control over pixels

Posted: Mon Dec 07, 2009 4:52 pm
by Janschenkel
I'm afraid you can't just set the color of any pixel on the screen; what you can do, is use an image control and build your own imageData and alphaData properties for that image. I think Chipp Walters has made a few examples which you can download from the Altuit Revolution Resources download site.

HTH,

Jan Schenkel.

Re: control over pixels

Posted: Tue Feb 23, 2010 8:03 am
by waltergent
Hi, I wil be happy if anybody can tell me about the perfect control over pixel.I want to know that that how the pixel can controlled.As I know the operating system knows the exact number of pixels per inch for your display based on its physical size and resolution.The interface is scaled to display at physical measurements rather than a certain number of pixels.