|
Post by davos1 on Jan 12, 2009 1:32:27 GMT -5
Hi, I am wondering if it is possible to allow to RB to get the color of a pixel in an image (#imageload) -and to update it-. as an example -I had to use python image from PIL to solve it- 'load the image.. 'then get the pixel values independently (c(1)=R,c(2)=G,c(3)=B) c=pix(x,y) 'print the values print "RGB";pix(x,y); print "only R";c(0);"only G""; c(1);"only B";c(2) 'set a new value pix(x,y)=(125,249,255) getting the color of a pixel of a loaded image would add RB image manipulation capacity. also, if that could be integrated with the #graphic (pixel to pixel transfer), or you could mix photos with graphics and save the mix or get info from the image loaded. well , just dreamming,
|
|
|
Post by StefanPendl on Jan 12, 2009 2:04:28 GMT -5
You can already use the LOADGRAPHIC command to load an image into a graphics object as a background to draw onto, see the TinyImage example. You can use the SET method to draw one individual pixel. There is currently no support for getting the color of a pixel. Check out the Graphics Overview in the RB help file
|
|
|
Post by davos1 on Jan 15, 2009 14:18:37 GMT -5
Hi, I was looking for getting the color of a pixel, from that loaded image. then chaging that color in the image and updating that image because I had to recognize the pixels in the image...and I am doing it with python but I dont like pythyon... image manipulation with RB that was what I was dreamming about. ;D
|
|