Take the 2-minute tour ×

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?

share|improve this question
possible duplicate of How do I add watermark text to a bitmap in WinRT? –  Filip Skakun Jan 24 '13 at 16:17

2 Answers 2

up vote 1 down vote accepted

This gets the job done visually:

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

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

share|improve this answer
But how to save the watermark added image? –  James Jan 25 '13 at 1:39
Read the answer, it is not possible. Scratch that, it is possible, but it requires that you write it in C++. It really is not possible in C# / WinRT at this time. –  Jerry Nixon - MSFT Jan 25 '13 at 21:06

As you mentioned, Microsoft deleted the Graphics-Namespace from the new API, which was commonly used for tasks like that. There is a new slimmed namespace: Windows.Graphics.Imaging

In this namespace are classes, which you can use to do your task manually. With "manually" I mean, that you have to work with single pixel bytes and calculate with them. On the internet and wikipedia are enough code snippets and formulas for this.

So, the classes you need from the Windows.Graphics.Imaging-Namespace are the following:

  • BitmapDecoder ( GetPixelDataAsync() )
  • BitmapEncoder ( SetPixelData() )
  • BitmapTransform
  • PixelDataProvider

I have used the above mentioned classes to do this task in vb.net, as you can see here: http://apps.microsoft.com/windows/app/watermark/6e649cd2-4711-409b-adf5-170e61aeb79e

Note: I had asked in Windows Dev Center for an alternative to graphics-namespace and to do this task. And I got reply from an Microsoft employee, who said, that there is no way to do this in Windows Store Apps, he only recommend to use Direct2D. -.-'

share|improve this answer

Your Answer


