I would like to do something like this http://weblogs.asp.net/broux/archive/2011/02/08/silverlight-how-to-watermark-a-writeablebitmapimage-with-a-text.aspx. I am having a tough time getting this to work in WinRT. I am using the WriteableBitmap extensions to "render" some text but I want it to look exactly like it looks in this example. Any suggestions or help?
How do I add watermark text to a bitmap in WinRT?
1.2k Views Asked by Emmie Lewis-Briggman At
2
There are 2 best solutions below
1
Jerry Nixon
On
This gets the job done visually:
<Grid>
<Image Source="{Binding MyImage}" />
<Image Source="{Binding MyWatermark}" />
</Grid>
It's certainly the same effect without all the work. If you are wanting to get it to literally make the watermark part of the original image, offloading to a service is your only current option. Without the Render() method on the WriteableBitmap there is no other option for you. Not even the XAML Toolkit solves this problem. It's a common request.
But depending on your use case, this might just be exactly what you want!
I hope it is. Best of luck.
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in WINDOWS-RUNTIME
- Linker errors when adding a native c++ static library to Windows runtime component (UWP)
- Linker issues while cross compiling for ARM(arm6ec) platform
- Byte Patching using winrt api (C++)
- Associating WinRT DeviceInformation objects with WMI objects (Win32_PnPEntity)
- System.PlatformNotSupportedException error in desktop App (.NET framework) VS2019
- IAsyncOperation "Completed" handler race conditions?
- IMetaDataDispenser::DefineScope() fails with E_NOTIMPL (0x80004001)
- Why does my C++/WinRT program with an IAsyncOperation take 2 seconds longer if I remove system("");?
- Python winrt how to get notification listener permission?
- Python winrt module: MouseDevice is not activatable
- How to use a custom MediaSource for a virtual camera? Also, how and where should I register the CLSID for my virtual camera?
- WinUI3 C++ Data Binding
- How to read images from memory to ImageSource in C++/WinRT (WinUI3)?
- Does anyone know how to use the IDragDropManagerInterop interface with a desktop application?
- How can I use the system's clipboard in a winui 3 program
Related Questions in WRITEABLEBITMAP
- How to modify an Avalonia WritableBitmap and update the changes as image control on UI?
- WriteableBitmap blending oddly with background grid
- How to eliminate artifacting with fast update WriteableBitmap
- Why does this happen to the image when i use writablebitmap is it reading it wrong? do i need to have an offset?
- How to WritePixels (array of ushort[]) to WritableBitmap BGR32
- Performance difference between running program by Visual Studio and by local ( using WriteableBitmap to draw in WPF)
- Threading WriteableBitmap to Image control
- Artifacts on Avalonia WriteableBitmap BitmapContext
- UWP Compatible package for System.Windows.Media.Imaging.WriteableBitmap and System.Windows.Media.PixelFormats
- How do I write text on WriteableBitmap?
- Change bitmap palette for an image
- WriteableBitmap extension method FillEllipse is creating artifacts on edges of the image
- How to draw a rectangle using WriteableBitmap?
- How to avoid `WriteableBitmap buffer size is not sufficient` exception for Bgr24 format?
- Setting thumbnail of SystemMediaTransportControlsDisplayUpdater
Related Questions in WRITEABLEBITMAPEX
- UWP: Draw map icons to scale
- WPF Render 2D Point Cloud
- Artifacts on Avalonia WriteableBitmap BitmapContext
- How do I write text on WriteableBitmap?
- WriteableBitmap extension method FillEllipse is creating artifacts on edges of the image
- How do i reduce memory usage in my C# program?
- Setting thumbnail of SystemMediaTransportControlsDisplayUpdater
- WriteableBitmapEx alpha blend color issue
- APEX how to create a page that allows you to create username and passwords for a single user
- How to copy an Image into a section of a WriteableBitmap (C# & WPF)
- UWP Encode WriteableBitmap to JPEG byte array
- C# How to dispose of OpenFileDialog file
- How to improve performance of Changing Image Pixel colour using WriteableBitmapEx in Windows 10?
- How to store a lot of WriteableBitmap?
- Windows Store App - WriteableBitmap , blit method
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could render that text to a png asset and blit it on top of the bitmap. Unless the text needs to be dynamic - then you'd need DirectWrite. WinRT XAML Toolkit has an extension method you could use to render text to a WriteableBitmap.