Reputation: 1099
here is my code
import Image
import ImageDraw
img = Image.new("RGB", (400,400), "white")
draw = ImageDraw.Draw(img)
coords = [(100,70), (220, 310), (200,200)]
dotSize = 2
for (x,y) in coords:
draw.rectangle([x,y,x+dotSize-1,y+dotSize-1], fill="black")
im.save(contactMap,"JPEG")
want I am wanting to do is. After I have plotting my coordinate on my image, i want to save the image, and then increase the size of this image what functions are there in PIL that I can use to achieve my goal?
Upvotes: 0
Views: 3831
Reputation: 2372
Use resize:
img.save("a.jpg","JPEG")
img2 = img.resize( (800, 800))
img2.save("b.jpg","JPEG")
Upvotes: 1