Answered by:
Adding, saving and using images

Question
-
Hi, I'm new to using WPF and I am self-taught so please forgive me if this question is ery simple.
I'm creating a WPF app which contains a canvas, the content of the canvas is changed by multiple radiobuttons. These radio buttons are dynamically generated and added based on what data is in the database. What I want to do, is use an image as the bacground of the canvas and change the background when the the content changes. The catch is I need to be able to have some functionaliy which allows me to select and save images fom else where on the computer in to the "Image" folders subfolder "Areas", which is hosted in the project. I then need to be able to use the correct image for the radiobutton which has been selected.
Please can someone, offer a suggestion, example or link to something similar, which could help me do this?
Sunday, August 1, 2010 1:34 PM
Answers
-
Hi,
Please check out this link. It gives you idea of handling your case.
Syed Mustehsan IkramMonday, August 2, 2010 6:32 AM -
Hi Rayne,
In addition to the link from Mustehsan's post, if you want to save the images locally other than to a database, you need to use an image encoder.
You can find a simple sample and explanation here: http://msdn.microsoft.com/en-us/library/ms748873.aspx#_imageformats.
If you still have any doubts or concerns about this issue, please feel free to let me know.
Best regards,
Min
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.Wednesday, August 4, 2010 2:16 AM
All replies
-
Hi,
Please check out this link. It gives you idea of handling your case.
Syed Mustehsan IkramMonday, August 2, 2010 6:32 AM -
Hi Rayne,
In addition to the link from Mustehsan's post, if you want to save the images locally other than to a database, you need to use an image encoder.
You can find a simple sample and explanation here: http://msdn.microsoft.com/en-us/library/ms748873.aspx#_imageformats.
If you still have any doubts or concerns about this issue, please feel free to let me know.
Best regards,
Min
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.Wednesday, August 4, 2010 2:16 AM