save a image file after canvas

selvamurali

Active Member
Licensed User
Longtime User
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "vinayagar1.png", False)
picCanvas.Bitmap.WriteToStream(Out, 100, "PNG")
Out.Close

hi dear team

i used canvas to drawline on image after finished. i save the image using above code. it doesnt show any error but no such file saved in my directory.

need your help . how to save image file after canvas
 

vb1992

Well-Known Member
Licensed User
Longtime User
I think you really want to save to your sdcard directory
so you can find this image in your directory?

Change: File.DirInternal to File.DirRootExternal

(Just guessing that this is what you want to achieve)
 
Upvote 0

selvamurali

Active Member
Licensed User
Longtime User
canvas image save

Hi Erel.

i run the above code . then manually open the project files folder but there is no file in that name.

help me
 
Upvote 0
Top