How to Use VB.Net Code in UI Path

Hi Friends,

How to use Vb.Net Code in Uipath

I used Invoke Code Activity but am getting error

I mentioned the sample code below.

Public Shared Sub SharpenImageDemo()

Dim fileName As String = "c:/Sample.png"

Dim reImage As REImage = REFile.OpenImageFile(fileName)

Dim newImage As REImage = ImageProcessing.ApplySharpen(reImage)

REFile.SaveImageFile(newImage, "c:/reimage.png", New PNGEncoder())

End Sub

Thanks in Advance…


Remove the class declaration and closing, i mean below two lines. It will work

Thank You @HareeshMR