draw image transparently

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Tomio.

Hello,

I want to copy an image into another one, but transparently.
I can't get it. What is wrong?

...
LoadImage(1,a$)
LoadImage(2,ex$)
UseImage(1)
StartDrawing(ImageOutput())
BackColor(255,255,255)
DrawingMode(?)
DrawImage(UseImage(2),50,70)
StopDrawing()
...

Image 2 will be drawn into image 1, but never transparently, whatever
I do with DrawingMode's parameter. And the background IS white.

Greetings../tomio