简体   繁体   中英

add watermark on image in windows8

I can find lots of threads and blogs which related to add watermark to image, but all of them are using GDI+, in winrt, it couldn't work. Anyone know how to add watermark to image in windows 8 app?

This gets the job done visually:

<Grid>
    <Image Source="{Binding MyImage}" />
    <Image Source="{Binding MyWatermark}" />
</Grid>

Same answer as here: https://stackoverflow.com/a/14509282/265706

it looks like the Lumia Imaging SDK will let you do this. We tested it with an HTC device and it worked so it does appear to support windows phones from other manufacturers...

here's a blog post I wrote about using the SDK to crop and blend (watermark) photos, and it includes a sample project to see the code in action.

http://blog.falafel.com/crop-blend-watermark-photos-on-windows-phone-8-1-with-the-lumia-imaging-sdk/

I hope this is helpful!

EDIT: I just realized your question was for Windows we did not try this with windows, only phone, but the documentation states it works with Windows 8.1 devices, I'll have to test this and see what happens!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM