PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → extending our knowledge of dCopyBlt
extending our knowledge of dCopyBlt
Débuté par brian pottorff, 02 mai 2004 06:14 - Aucune réponse
Posté le 02 mai 2004 - 06:14
Hello colleagues-
While copying small images atop larger ones using dCopBlt, I want to duplicate WinDev's option of making the color of the upper left pixel in the source the transparent color. The stuff below seems helpful, but I need to know more. Can anyone help? Thanks, brian
---------------------------------------------------------------
Written by Piet van Zanten at 06 Feb 2004 21:11:06:
As an answer to: Re: dCopyBlt written by Ola Pedersen at 05 Feb 2004 09:58:02:
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