Convert code from VB.NET

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top