ich habe eine Frage und zwar… Wenn ich einen Pfad zu einer Bilddatei in ein Label übertragen habe und ich möchte nun über einen Button dieses Bild in einem Canvas öffnen, wie muss ich das anstellen?
dim theFolderitem as new Folderitem(lblPfad.text, , FolderItem.PathModes.Native)
if theFolderitem = nil or not theFolderitem.exists then
MessageBox "Bild ist net da"
return
end if
dim theBinStream as BinaryStream = BinaryStream.Open(theFolderitem)
if theBinStream = nil then return
dim PictureData as MemoryBlock = theBinStream.read(theBinStream.Length)
dim thePicture as new Picture = Picture.FromData(PictureData)
Canvas2.BackDrop = thePicture