This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('<img>').appendTo(myPopupElement) | |
.on('load', function () { | |
// open the popup here | |
}) | |
.attr('src', myImageSource) | |
.attr('alt', 'my alt text'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function ResizeImage(fs As FileStream, | |
width As Integer, | |
Optional height As Integer = 0) As MemoryStream | |
Dim img As New BitmapImage | |
Dim enc As New PngBitmapEncoder | |
Dim ms As New MemoryStream | |
img.BeginInit() | |
img.StreamSource = fs |