A
Alex Usherenko
Guest
I need to show images which locate in SQL database as data type Image using Image control . My code displayed image, but not as animated. What I need to do. Help please!
This is my XAML:
<Image x:Name="PictureBox1" Width="450" Margin="106,35,7,12"/>
Code behind:
Dim ms As New IO.MemoryStream(dr("Image1"))
Dim source As BitmapFrame = BitmapFrame.Create(ms,BitmapCreateOptions.PreservePixelFormat,BitmapCacheOption.OnLoad)
PictureBox1.Source = source
Continue reading...
This is my XAML:
<Image x:Name="PictureBox1" Width="450" Margin="106,35,7,12"/>
Code behind:
Dim ms As New IO.MemoryStream(dr("Image1"))
Dim source As BitmapFrame = BitmapFrame.Create(ms,BitmapCreateOptions.PreservePixelFormat,BitmapCacheOption.OnLoad)
PictureBox1.Source = source
Continue reading...