load local image

Mar 14, 2013 at 1:39 PM
Edited Mar 14, 2013 at 1:42 PM
can someone provide an example how to load a local image from code and draw it on pdf.
local means an image from silverlight application like this:
 New Uri("/Demo;component/" + path, UriKind.Relative)
kind regards
Mar 14, 2013 at 2:04 PM
okay i found a solution
Dim img = System.Windows.Application.GetResourceStream(New Uri(path, UriKind.RelativeOrAbsolute))
Dim ximg =  XImage.FromStream(img.Stream)