PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Re: dCopyBlt
Re: dCopyBlt
Iniciado por Piet van Zanten, fev., 04 2004 2:31 PM - 4 respostas
Publicado em fevereiro, 04 2004 - 2:31 PM
Hi Ola,
I already tried with a gif, but unfourtunately, not the desired effect.
Regards,
Piet
Publicado em fevereiro, 05 2004 - 10:58 AM
Piet,
It seems that the effect you are after, is not possible with dCopyBlt command. I made a small test app where I can merge two pictures together using different parameters for dCopyBlt, and none of the 15 options gives the desired results.
Or maybe I am missing something. I would be interested to solve this problem, too.
Ola
Hi Ola,
I already tried with a gif, but unfourtunately, not the desired effect.
Regards,
Piet



Pienoismalli magazine
Publicado em fevereiro, 06 2004 - 2:44 PM
Hi Ola,
I'll ask PCsoft support if they know a solution. I'll keep you informed.
Piet.
Piet,
It seems that the effect you are after, is not possible with dCopyBlt command. I made a small test app where I can merge two pictures together using different parameters for dCopyBlt, and none of the 15 options gives the desired results.
Or maybe I am missing something. I would be interested to solve this problem, too.
Ola
Hi Ola,
I already tried with a gif, but unfourtunately, not the desired effect.
Regards,
Piet
Publicado em fevereiro, 06 2004 - 9:35 PM
Hi Ola,
I figured I would need a mask and indeed I do. I found this on a vb site:
http://www.winprog.org/tutorial/transparency.html
It's about the API call "bitBlt" which is probably exactly the same as the Windev dCopyBlt. Have not tried it yet, but I though you migth be interested.
Greetz,
Piet

Piet,
It seems that the effect you are after, is not possible with dCopyBlt command. I made a small test app where I can merge two pictures together using different parameters for dCopyBlt, and none of the 15 options gives the desired results.
Or maybe I am missing something. I would be interested to solve this problem, too.
Ola
Hi Ola,
I already tried with a gif, but unfourtunately, not the desired effect.
Regards,
Piet
Publicado em fevereiro, 06 2004 - 10:11 PM
Hi Ola,
This is the solution (with thanks to winprog.org):
dCopyBlt("Image3","Image1",copySrcAnd,1,1,147,110,25,55,147,110)
dCopyBlt("Image2","Image1",copySrcPaint,1,1,147,110,25,55,147,110)
Where
Image1 = Original image
Image2 = Image to be put on top of image1. Transpant area has to be black.
Image3 = Image mask. This is image2 in black&white. Background is white, the rest is black.
Greetz,
Piet