New topic: Reading RGB value of a pixel
<http://forums.realsoftware.com/viewtopic.php?t=36377> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message kappa927 Post subject: Reading RGB value of a pixelPosted: Fri Nov 19, 2010 2:40 pm Joined: Fri Nov 19, 2010 2:32 pm Posts: 1 How would one go about obtaining RGB values for a given pixel in an image? something like: mypicture.readRGB(coordinates of pixel in question) but I can't find the command to read RGB values. Thanks for the help. Top timhare Post subject: Re: Reading RGB value of a pixelPosted: Fri Nov 19, 2010 2:48 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 8703 Location: Portland, OR USA mypicture.graphics.pixel(x,y) If you're going to do a lot of it, obtain an RGBSurface from mypicture.graphics. It gives you faster access. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
