GFL_SDK and VB.NET

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
JR

GFL_SDK and VB.NET

Post by JR »

Has anyone worked on getting this control to work with VB.NET? I can't even get the it to load an image into a picturebox.

Ctrl = New GflAx.GflAx

With Ctrl
.LoadBitmap(My.Application.Info.DirectoryPath & "\image.jpg")
Picture1.Image = .GetPicture
End With
Mowen

Post by Mowen »

I was looking for it too. And I found it. The correct syntax to use with VB.net is:

Code: Select all

PictureBox1.Image = Image.FromHbitmap(Ctrl.GetPicture.Handle)
Works great for me in VB.Net 2005
Post Reply