Message 1 of 9
Not applicable
06-11-2015
04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i have some Problems to find a Solution to Convert the Thumbnail iProperty Value
Dim thumbnail As IPictureDisp = thumbProp.Value
Dim objImage As System.Drawing.Image
objImage = Microsoft.VisualBasic.Compatibility.VB6.Support.IPictureDispToImage(thumbnail)
and all this without ...Support.IPictureDispToImage then this is !!Obsulet!!
so Wayne Brill have some Solution on this Side but this is Image ==> iPictureDisp
http://modthemachine.typepad.com/my_weblog/2012/02/bitmaps-without-vb6-icontoipicture.html
or this in Support Blog from Philippe Leefsma
and the solution from Microsoft or some other Peoples work rundomized most Time not!
Public Class PictureToImageConverter
Inherits System.Windows.Forms.AxHost
Public Sub New()
MyBase.New("{63109182-966B-4e3c-A8B2-8BC4A88D221C}")
End Sub
Public Shared Function Convert(ByVal iPicture As stdole.IPictureDisp) As System.Drawing.Image
Return CType(System.Windows.Forms.AxHost.GetPictureFromIPicture(iPicture), System.Drawing.Image)
End Function
End Class
pls Help thx
Mario
Solved! Go to Solution.