VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
Dim pictureData As Byte() = DataGridView1.SelectedCells.Item((DataGridView1.Columns.Count) - 1).Value
Dim picture As Image = Nothing
PBDB.Image = Nothing
Using stream As New IO.MemoryStream(pictureData)
picture = Image.FromStream(stream)
End Using
'ImageViewer1.Image = picture
pbDB.Image = picture
End Sub
When I try to do this with the ImageViewer there comes an error from IntelliSense: "System.Drawing.Image cannot converted to Vintasoft.Imaging.VintasoftImage"ImageViewer1.Image = New VintasoftImage(bitmap, False)Please read information about constructors of the VintasoftImage class in the on-line documentation here: