Φίλε,
για δοκίμασε να αλλαξεις την GetEmbeddedPng και κανε return Type Image αντί Bitmap
Function GetEmbeddedPng(ByVal strName As String) As System.Drawing.Bitmap
Dim mybitmap As New System.Drawing.Bitmap(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream((strName)))
Return mybitmap
End Function
σε
Function GetEmbeddedPng(ByVal strName As String) As System.Drawing.Image
Dim mybitmap As New System.Drawing.Image.FromStream(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream((strName)))
Return mybitmap
End Function
Ίσως φταίει
το transformation σε bitmap.
just a thought!
"Success is the ability to go from one failure to another with no loss of enthusiasm."
Winston Churchill
"Quality means doing it right when no one is looking."
Henry Ford