Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving WPF Adorners

Tags:

wpf

adorner

I am relatively new to WPF and I have an issue with Adorners.

I have an inkcanvas that contains an image, I can save the image with the strokes added by the user. The issue I have is that I have a requirement that allows the user to add text over the image, and to print/save the text without damaging th image.

I used an adorner to put text over the inkcanvas, and it looks fine on screen, but I am at a loss to save the text, or print the image with the text.

Any help would be appreciated


1 Answers

Josh Smith had provided two great articles towards Image Annotations. I think this is something you've been looking for:

CodeProject: Annotating an Image in WPF

Josh Smith blog: Annotating an Image in a Viewbox

This article will give you a brief overview of Annotation Framework in WPF and the ways annotations can be persisted.

Hope that helps.

like image 77
Denis Vuyka Avatar answered Dec 20 '25 08:12

Denis Vuyka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!