Convert code from VB.NET

  • Thread starter Thread starter Diego
  • Start date Start date
D

Diego

Hi,
Anyone can help to convert this code to C#?

Public Class MonImageConverter
Inherits System.Windows.Forms.AxHost

Public Sub New()
MyBase.New("59EE46BA-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.StdPicture
ImageToIPicture = AxHost.GetIPictureFromPicture
(Image)
End Function

Public Shared Function IPictureToImage(ByVal Image As
stdole.StdPicture) As System.Drawing.Image
IPictureToImage = AxHost.GetPictureFromIPicture
(Image)
End Function
End Class
 
Back
Top