S
ssecorp
I want to open a bunch of pictures and get their pixels.
i want also to be able to display them
this is easy enoguh in python but seems very complicated in Java.
what library do you recommend?
from PIL import Image
import os
print os.path.exists('C:/Users/saftarn/Desktop/images/blob.jpg')
im2 = Image.open('C:/Users/saftarn/Desktop/images/blob.jpg')
for x in range(1,200):
for y in range(1,200):
color = im2.getpixel((x,y))
if color != (255,255,255):
print x,y,color
i want also to be able to display them
this is easy enoguh in python but seems very complicated in Java.
what library do you recommend?
from PIL import Image
import os
print os.path.exists('C:/Users/saftarn/Desktop/images/blob.jpg')
im2 = Image.open('C:/Users/saftarn/Desktop/images/blob.jpg')
for x in range(1,200):
for y in range(1,200):
color = im2.getpixel((x,y))
if color != (255,255,255):
print x,y,color