VB.NET (or Visual Basic on Visual Studio 2013) PictureBox to read WebP

406 views
Skip to first unread message

Domino59

unread,
Aug 15, 2018, 12:25:35 PM8/15/18
to WebP Discussion
Hello,

First, I must apologize for my poor english, I'm french and don't speak very good english.

Second, I don't know if this topic has been asked before, I made a seach here but didn't find any result for VB and use of Webp.
So, if it is the case, sorry for the repetition... Say me where I can find the answer and that will make me happy !

Third, I'm not IT specialist so... my question is perhaps very easy and a little bit stupid for experimented programmers.

I made a little prog (in Visual Studio 2013 Express, in VB) which read and display pictures in all the types the "PictureBox" can handle and I want to use WebP too.
I downloaded the WebP Codec and the LibWepP for Windows (x64 and x86).

These works well (I can read pictures in WebP with the Viewer in Explorer) but, of course, not in my soft with the PictureBox.

I think I must call WebP API (like a call to Win API) to convert WebP to bmp or jpg then load it in PictureBox, but I don't know how to do these 2 steps !
I don't know the name neither the parameters of the WebP API and how to load in PictureBox. 

Is somebody can show me how to do this ?

With many thanks for your futur help
Dom

James Zern

unread,
Aug 15, 2018, 2:27:24 PM8/15/18
to WebP Discussion
Hi,


On Wednesday, August 15, 2018 at 9:25:35 AM UTC-7, Thierry DELPIERRE wrote:
Hello,

First, I must apologize for my poor english, I'm french and don't speak very good english.

Second, I don't know if this topic has been asked before, I made a seach here but didn't find any result for VB and use of Webp.
So, if it is the case, sorry for the repetition... Say me where I can find the answer and that will make me happy !

Third, I'm not IT specialist so... my question is perhaps very easy and a little bit stupid for experimented programmers.

I made a little prog (in Visual Studio 2013 Express, in VB) which read and display pictures in all the types the "PictureBox" can handle and I want to use WebP too.
I downloaded the WebP Codec and the LibWepP for Windows (x64 and x86).

I think the closest thread is this one [1]. There were some examples using C# that might be usable as a reference.
 

These works well (I can read pictures in WebP with the Viewer in Explorer) but, of course, not in my soft with the PictureBox.

I think I must call WebP API (like a call to Win API) to convert WebP to bmp or jpg then load it in PictureBox, but I don't know how to do these 2 steps !
I don't know the name neither the parameters of the WebP API and how to load in PictureBox. 

Using the WIC-based (WebP Codec) isn't the best choice at this point. It's out of date and does support things like animation.
 

Is somebody can show me how to do this ?

With many thanks for your futur help
Dom

Reply all
Reply to author
Forward
0 new messages