Open EdulimaProg opened 1 year ago
If you have your backgroundImage, and watermarkImage, then you can draw the watermark image onto the background image at pixel coordinates x, y with:
compositeImage(backgroundImage, watermarkImage, dstX: x, dstY: y);
For anyone who might have experience an issue where compositeImage
result is a black and white image: what worked for me was to ensure the base image is jpg. i'm not sure if thats written somewhere but i didn't see it and ended up using up 3 hours...
someone help me, i put a watermark anywhere in the image, can you help me?