vb.net - How to browse an image using OpenFileDialog and save it in images folder - Silverlight OOB - VB -


I am developing a Silverlight OOB application using VB, and I need to implement the method where the user Select an image. PNG) is from an OpenFileDialog file and it saves this image in the image folder in the project, because it is not possible to exclude an image from the project, so I have to save it in the image folder, but I do not know how to do it , Someone helps me !!! Even what I have done so far:

  dim = open new OpenFile DLOG of.philter = "image files (* .png) | * .png" ofd in the form of Open Philadelphology .FilterIndex = 1 if ODD ShowDialog () then dimmed as imgd string = of.file.DirectoryName & amp; "\" & Amp; Bitmapimage = new bitmap image (new yuri (imgd)) as the .im.img .am if    

You do not need to copy files.

Just load by URI instead of FileStream when running outside the browser in the outside browser settings of your code .

  String = "C: \ Users \ Public \ Picture \ Sample Pictures \ Penguin.JPG" as Bit Bitmap Bitmap Image = New Bitmap Image Streamlined = New File Stream (Path, File MOD. Open, File Access. Read) Bitmap. Using Stream as Setsource (Stream)    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -