The (JES)Jython Environment for Students is a full-featured media computation environment for programming in Jython. It includes facilities for programming, debugging, and media examination. JES also comes with an extensive multimedia API, enabling easy and rapid manipulations of sounds, images, and on some platforms, video.
Questions tagged [jes]
177 questions
2
votes
1 answer
scale up and down image by variable input jython/python
Pretty new to programming and wasn't able to find any ways of doing this without the use of PIL etc, if I am wrong please point me in the right direction!
I need to modify the following code so that it will copy the image to TGT at a size chosen by…

Glen
- 21
- 3
2
votes
1 answer
Setting diagonal mirroring via Jython (user to set points)
Trying to get my my head around this program we need to create
What is needed is as per the notes:
create a function named
arbitraryMirror() that allows the user to place a mirror at an arbitrary angle, causing an intersect and therefore mirror the…

Sam Sarzen
- 21
- 2
2
votes
0 answers
Making a collage using Jython in JES
I have a project for school where I have to create a collage that displays an image multiple times with changes to each image. I had an issue with the filze size of a previous image, but got that resolved and now have another issue. When running…

SucksAtJython
- 21
- 3
2
votes
0 answers
JES - Gray Posterize
So here is a simple function to gray posterize an image. With gray point = 64
def grayPosterize(pic):
grayPoint = 64
for p in getPixels(pic):
r = getRed(p)
g = getGreen(p)
b = getBlue(p)
luminiance = (r+g+b)/3
if luminance < grayPoint:
…

Huy Tran
- 51
- 5
2
votes
4 answers
Python global variable/scope confusion
I've started teaching myself python, and have noticed something strange to do with global variables and scope.
When I run this:
x = 2
y = 3
z=17
def add_nums():
y = 6
return z+y
The result of 23 is printed...
However, when I expand the…

Vaderico
- 629
- 2
- 8
- 24
2
votes
1 answer
Dithering in JES/Jython
My goal is to dither an image in JES/Jython using the Floyd-Steinberg method. Here is what I have so far:
def Dither_RGB (Canvas):
for Y in range(getHeight(Canvas)):
for X in range(getWidth(Canvas)):
P =…

user2942337
- 39
- 3
2
votes
2 answers
Creating a movie in Jython/Python
I am trying to make a movie, whilst creating frames through a loop. It is saving, but only the first frame (which it plays as a movie - short movie!) I've tried various things and cannot figure out what I am doing wrong. Thanks
def…
user3956566
2
votes
1 answer
Mirroring an Image by its Diagonal in Jython
So I need to mirror an image. The top right side of the image should be flipped over to the bottom left side. I created a function that flips the top left side of an image to the bottom right, but I just can't seem to figure out how to do it the…

user2387191
- 65
- 1
- 4
- 9
2
votes
1 answer
How do I change image colors with JES programing?
My goal is to double the picture size then change the left half to grayscale, then change the green value of the top right half and the blue value of the bottom right half. I have values that I found in my textbook for the grayscale but im not sure…

user2220660
- 21
- 1
- 4
2
votes
3 answers
Drawing diagonal lines on an image
Hi im trying to draw diagonal lines across an image top right to bottom left here is my code so far.
width = getWidth(picture)
height = getHeight(picture)
for x in range(0, width):
for y in range(0, height):
pixel = getPixel(picture,…

user2194374
- 123
- 3
- 4
- 9
1
vote
1 answer
Automatic JCL job
I used the following job to issue another job at a specific time, but it didnt give the desired result.
//STRTJOB JOB CLASS=A,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=T
//SYSIN DD=DUMMY
//SYSUT1 DD…

Soraya
- 29
- 3
1
vote
0 answers
How to fix "OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space" in JES
Im trying to grayscale an image in JES, the image is about 3000x2000 in size. Whenever I run it, gives me OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space.
Im fairly new to this language so Im not sure if its my code thats the…

dexdz
- 43
- 4
1
vote
1 answer
How to auto scale in JES
I'm coding watermarking images in JES and I was wondering how to Watermark a picture by automatically scaling a watermark image?
If anyone can help me that would be great.
Thanks.

Lee
- 11
- 3
1
vote
1 answer
JES image duplicating
I am working on a project where I need to print any image selected by the user a number of times selected by the user too.
My code is mostly working but I need to make a nested loop that will basically change the values for the Xpos and Ypos of the…

vkp
- 11
- 3
1
vote
1 answer
Unable to return correct output from created function in JES
I am fairly new to jython and I am inquiring about creating a function that is dealing with a list. Basically what I am trying to do with the below function is create a function that will loop through the entirety of my list, then find the lowest…

ohGosh
- 27
- 3