467,166 Members | 1,030 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,166 developers. It's quick & easy.

Jython using jes to create the program

I need to pixelate the image I created the grid after setting the color for the pixel corners I need to average the new pixel colors by using drawrectfilled

def pixalate_image( ):

image_obj = makePicture( pickAFile( ))

pixel = requestInteger( "Get distance to pixel block:" )
w = getWidth( image_obj )
h = getHeight( image_obj )


for w_idx in range( 0, w, pixel):
for h_idx in range( 0, h , pixel):
setColor( getPixel( image_obj, w_idx, h_idx ), white )



show( image_obj )
pixalate_image()
4 Weeks Ago #1
  • viewed: 852
Share:

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by aaron | last post: by
reply views Thread by sameer123 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.