[−][src]Function photon_rs::multiple::watermark
pub fn watermark(img: &mut PhotonImage, watermark: PhotonImage, x: u32, y: u32)
Add a watermark to an image.
Arguments
img
- A DynamicImage that contains a view into the image.watermark
- The watermark to be placed onto theimg
image.x
- The x coordinate where the watermark's top corner should be positioned.y
- The y coordinate where the watermark's top corner should be positioned.
Example
// For example, to add a watermark to an image at x: 30, y: 40: use photon::multiple; photon::multiple::watermark(img, watermark, 30, 40);