VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Convert BMP to JPG with this easy to use code. (Note: Requires vic32.dll available from http://www.

Chris Wilson  (9 Submissions)   Graphics   VB 6.0   Unknown Difficulty   Sat 14th April 2001   Mon 8th February 2021

Convert BMP to JPG with this easy to use code. (Note: Requires vic32.dll available from https://www.catenary.com/)

API Declarations



Declare Function bmpinfo Lib "VIC32.DLL" (ByVal Fname As String, bdat As BITMAPINFOHEADER) As Long
Declare Function allocimage Lib "VIC32.DLL" (image As imgdes, ByVal wid As Long, ByVal leng As Long, ByVal BPPixel As Long) As Long
Declare Function loadbmp Lib "VIC32.DLL" (ByVal Fname As String, desimg As imgdes) As Long
Declare Sub freeimage Lib "VIC32.DLL" (image As imgdes)
Declare Function convert1bitto8bit Lib "VIC32.DLL" (srcimg As imgdes, desimg As imgdes) As Long
Declare Sub copyimgdes Lib "VIC32.DLL" (srcimg As imgdes, desimg As imgdes)
Declare Function savejpg Lib "VIC32.DLL" (ByVal Fname As String, srcimg As imgdes, ByVal quality As Long) As Long



' Image descriptor
Type imgdes
ibuff As Long
stx As Long
sty As Long
endx As Long
endy As Long
buffwidth As Long
palette As Long
colors As Long
imgtype As Long
bmh As Long
hBitmap As Long
End Type

Type BITMAPINFOHEADER
biSize As Long
biWidth As Long
biHeight As Long
biPlanes As Integer
biBitCount As Integer
biCompression As Long
biSizeImage As Long
biXPelsPerMeter As Long
biYPelsPerMeter As Long
biClrUsed As Long
biClrImportant As Long
End Type



Rate Convert BMP to JPG with this easy to use code. (Note: Requires vic32.dll available from http://www. (1(1 Vote))
Convert BMP to JPG with this easy to use code. (Note: Requires vic32.dll available from http://www..bas

Convert BMP to JPG with this easy to use code. (Note: Requires vic32.dll available from http://www. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters