vb.net - Get File Path of a System.Drawing.Bitmap -


is there way file path of system.drawing.bitmap type?

something like:

my.resources.myimg.getfilepath or

getfilepath(my.resources.myimg)

obviously above example not exist. showing intention.

pretty sure isn't possible there's quite few ways init system.drawing.bitmap (e.g: stream, uri, image object) , bitmap generic object.

depending on technology you're using, there may more specialized image type that's better use. example, if you're using wpf, check out bitmapimage store file path property urisource.

if need work system.drawing.bitmaps, i'd recommend creating model houses both bitmap , file path. this:

{     public bitmap myimage {get; set; }     public string filepath {get; set; } } 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -