Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
merge drawings
#4
This program makes a drawing by merging two drawings together but not quite the way I want it to. It joins drawing 'A' (which is a transparency) and places it on drawing 'B'. The end result is drawing 'C' which is not what I want. I want it to look like drawing 'D'.

http://content.screencast.com/users/dchr...70/bug.png

This is my line of code


image.paste(Image.open('bres sc4.png'), (int(300),int(400)))
I searched the web and think that I found the problem. I need to specify the 3rd parameter. However, I don't know how.

I think it needs to be something like this but this gives me an error


image.paste(Image.open('bres sc4.png'), (int(300),int(400)), mask='bres sc4.png'))
Reply


Messages In This Thread
merge drawings - by chris64 - Oct-12-2017, 06:21 AM
RE: merge drawings - by metulburr - Oct-12-2017, 03:18 PM
RE: merge drawings - by chris64 - Oct-13-2017, 02:11 AM
RE: merge drawings - by chris64 - Oct-14-2017, 10:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020