Hi,
Anyone can help to convert this code to C#?
Public Class MonImageConvert er
Inherits System.Windows. Forms.AxHost
Public Sub New()
MyBase.New("59E E46BA-677D-4d20-BF10-8D8067CB8B33")
'note the GUID here has no meaning.
End Sub
Public Shared Function ImageToIPicture (ByVal Image As
System.Drawing. Image) As stdole.StdPictu re
ImageToIPicture = AxHost.GetIPict ureFromPicture
(Image)
End Function
Public Shared Function IPictureToImage (ByVal Image As
stdole.StdPictu re) As System.Drawing. Image
IPictureToImage = AxHost.GetPictu reFromIPicture
(Image)
End Function
End Class
Anyone can help to convert this code to C#?
Public Class MonImageConvert er
Inherits System.Windows. Forms.AxHost
Public Sub New()
MyBase.New("59E E46BA-677D-4d20-BF10-8D8067CB8B33")
'note the GUID here has no meaning.
End Sub
Public Shared Function ImageToIPicture (ByVal Image As
System.Drawing. Image) As stdole.StdPictu re
ImageToIPicture = AxHost.GetIPict ureFromPicture
(Image)
End Function
Public Shared Function IPictureToImage (ByVal Image As
stdole.StdPictu re) As System.Drawing. Image
IPictureToImage = AxHost.GetPictu reFromIPicture
(Image)
End Function
End Class
Comment