oldw =
oldh =
newim =
for row in :
for col in :
originalCol = col//2
originalRow = row//2
oldpixel =
return newim
Wednesday, February 4, 2009
Chapter 6 -- Page 220 -- Listing 6.9
This listing has transposed the width and height in lines 7 and 8. The row should iterate over the height and the column over the width. The correct version is:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment