How to extract thumbnail image from files?
Posted: Tue Dec 05, 2006 3:21 am
Hello,
What is the difference between ExportToClipboard and SendBinary?
In Windows XP pro, I have to use .ExportToClipboard() method of GFLAX and then use clipboard image to show in VB.net Picture box control. In Win 2000, I can use .SendBinary() method. I cannot use SendBinary method in XP.
Please correct me if my code is wrong. I use VB.Net with VStudio 2005. My code works, but I don't it's a correct way to extract thumbnail from files. I can display images and PDF files with these code.
Dim objGFL as New GflAx.GflAx
With objGFL
.LoadBitmap(strFileName)
.SaveFormat = AX_JPEG
IF WinXP Then
.ExportToClipboard()
Else
Dim objMS as MemoryStream = New MemoryStream( .SendBinary() )
End If
End With
And then I can use clipboard or memory stream to display image in Picture box control. I don't want to use two methods according to OS. Is there any other way to extract image from files (images or PDF)?
Thanks in advance
CMK
What is the difference between ExportToClipboard and SendBinary?
In Windows XP pro, I have to use .ExportToClipboard() method of GFLAX and then use clipboard image to show in VB.net Picture box control. In Win 2000, I can use .SendBinary() method. I cannot use SendBinary method in XP.
Please correct me if my code is wrong. I use VB.Net with VStudio 2005. My code works, but I don't it's a correct way to extract thumbnail from files. I can display images and PDF files with these code.
Dim objGFL as New GflAx.GflAx
With objGFL
.LoadBitmap(strFileName)
.SaveFormat = AX_JPEG
IF WinXP Then
.ExportToClipboard()
Else
Dim objMS as MemoryStream = New MemoryStream( .SendBinary() )
End If
End With
And then I can use clipboard or memory stream to display image in Picture box control. I don't want to use two methods according to OS. Is there any other way to extract image from files (images or PDF)?
Thanks in advance
CMK