|
-
Oct 1st, 2025, 03:06 PM
#1
Thread Starter
PowerPoster
vb6 webp to JPG/PNG/GIF/BMP,PNG SAVE AS Webp format,Image format conversion, image co
https://gitee.com/xiaoyaosoft/xiaoya...er/DLL/008Webp
https://gitee.com/xiaoyaosoft/xiaoya...iaoYaoWebp.zip
use libwebp.dll by google,
Code:
Dim Webp As New XiaoYaoWebpX64.WebpClass
Private Sub WebpToJPG_PPNG_Click()
Dim Path1 As String, OK As Boolean, WebpFile1 As String
Path1 = App.Path & "\"
WebpFile1 = Path1 & "WebpDemo.webp"
OK = Webp.WebpSaveAsImg(WebpFile1, Path1 & "WebpDemo_Tojpg.jpg")
MsgBox OK
OK = Webp.WebpSaveAsImg(WebpFile1, Path1 & "WebpDemo_Tojpg.png")
MsgBox OK
End Sub
Function LoadPictureFromWebp(ByVal WebpFile As String, ByVal Hdc As Long) As StdPicture
Set LoadPictureFromWebp = Webp.LoadPictureFromWebp(WebpFile, Hdc)
End Function
Function SaveAsWebp(ByVal ImgPath As String, ByVal webpFilePath As String, Optional ByVal quality As Single = 90, Optional ByVal picHandle As Long) As Boolean
Webp.SaveAsWebp ImgPath, webpFilePath, quality
End Function
Function WebpSaveAsImg(ByVal WebpFile As String, ByVal SaveImgFile As String, Optional ByVal JpgQuality As Long = 85, Optional ByVal FreeWebp As Boolean = True)
Webp.WebpSaveAsImg WebpFile, SaveImgFile, JpgQuality
End Function
Last edited by dday9; Oct 2nd, 2025 at 08:22 AM.
Reason: Removed Binaries
-
Oct 2nd, 2025, 12:08 PM
#2
Re: vb6 webp to JPG/PNG/GIF/BMP,PNG SAVE AS Webp format,Image format conversion, imag
That is the approach used by programs such as XNView and photoDemon.
https://github.com/yereverluvinunclebert
Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.
By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|