File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- import cImage as image
1
+ import image
2
2
3
3
img = image .Image ("lcastle.gif" )
4
4
newimg = image .EmptyImage (img .getWidth (),img .getHeight ())
Original file line number Diff line number Diff line change 1
- from cImage import *
1
+ from image import *
2
2
3
3
def grayPixel (p ):
4
4
avg = (p .getRed () + p .getGreen () + p .getBlue ()) // 3
5
5
return Pixel (avg ,avg ,avg )
6
6
7
7
def makeGrayScale (imageFile ):
8
- myimagewindow = ImageWin ("Image Processing" , 600 , 200 )
9
- oldimage = Image (imageFile )
8
+ myimagewindow = ImageWin (600 , 200 , "Image Processing" )
9
+ oldimage = Image (imageFile )
10
10
oldimage .draw (myimagewindow )
11
11
12
12
width = oldimage .getWidth ()
@@ -23,4 +23,4 @@ def makeGrayScale(imageFile):
23
23
newim .draw (myimagewindow )
24
24
myimagewindow .exitOnClick ()
25
25
26
- makeGrayScale ('lcastle.gif ' )
26
+ makeGrayScale ('lcastle.jpg ' )
Original file line number Diff line number Diff line change 4
4
# dependencies = [l.strip() for l in fh]
5
5
6
6
setup (
7
- name = 'cs20-image ' ,
7
+ name = 'cImage ' ,
8
8
description = 'Image manipulation library for media computation education' ,
9
- version = '1.5.4 ' ,
9
+ version = '2.0.0 ' ,
10
10
py_modules = ['image' ],
11
11
author = 'Brad Miller and Dan Schellenberg' ,
12
- author_email = 'schellenberg@gmail .com' ,
12
+ author_email = 'bonelake@mac .com' ,
13
13
install_requires = ['Pillow>=2.9.0' ],
14
14
include_package_data = False ,
15
15
license = 'GPL' ,
22
22
'Operating System :: MacOS' ,
23
23
'Operating System :: Unix' ,
24
24
'Programming Language :: Python' ,
25
- 'Programming Language :: Python :: 3.4 ' ,
25
+ 'Programming Language :: Python :: 3.7 ' ,
26
26
'Topic :: Education' ),
27
27
long_description = open ('README.rst' ).read (),
28
28
)
You can’t perform that action at this time.
0 commit comments