Not logged in. · Lost password · Register
Forum: agsXMPP RSS
NEed to set Photo from WPF control
Avatar
navraj #1
Member since Dec 2010 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: NEed to set Photo from WPF control
hello,

i need to set the avatar of the user from WPF image control. but the thing is that i can get an object of type ImageSource from the image control  and could not find any way to convert that object into vCard Photo object. can anybody help?

thanks
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I think you will find the answer here:
http://stackoverflow.com/questions/94456/load-a-wpf-bitmap…

I used always MemoryStreams to convert from and to BitmapImage.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS