Hi,
Sorry for my english (I'm spanish). If you want add an image, you must follow this steps:
- Add the image file to your silverlight project. When you select this file within the Solution Explorer, the Properties window allows you to choose a given �??Build
Action�??. Select "embedded resource".
- Now, you can open this file win XImage.FromStream (FromFile is obsolete).
For example (my picture is in Plantilla/images folder):
XGraphics gLeyenda = XGraphics.FromPdfPage(page);
Assembly myAssembly = Assembly.GetExecutingAssembly();
Stream myStream = myAssembly.GetManifestResourceStream("Plantilla.Images.LeyendaMapa.JPG");
XImage leyenda = XImage.FromStream(myStream);
gLeyenda.DrawRectangle(pen, 655, 40, leyenda.Width - 35, leyenda.Height - 65);
gLeyenda.DrawImage(leyenda, 660d, 50d);
gLeyenda.Dispose();
I hope help you.
Marta