control over pixels

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
glaedr
Posts: 4
Joined: Tue Jul 14, 2009 1:20 pm

control over pixels

Post by glaedr » Mon Dec 07, 2009 4:28 pm

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

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: control over pixels

Post by Janschenkel » Mon Dec 07, 2009 4:52 pm

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

waltergent
Posts: 1
Joined: Tue Feb 23, 2010 7:31 am

Re: control over pixels

Post by waltergent » Tue Feb 23, 2010 8:03 am

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.

Post Reply

Return to “Multimedia”