Latest Tutorials ...

Save geometry data to ESRI shape(SHP) files
Save geometry data to ESRI shape(SHP)...
Load and display vector data like ESRI Shape files or DGN, DXF files
Load and display vector data like ESR...
Let the user edit existing geometry objects
Let the user edit existing geometry o...
Let the user draw new geometry objects like Polygons, Lines, Points
Let the user draw new geometry object...
Viewing pictures in a viewer control designed for scrolling, zooming, panning
Viewing pictures in a viewer control ...
Handling Exif and IPTC image tags
...
Extract all pictures of a page
...
Generate PDF documents containing text and imagedata
Generate PDF documents containing tex...
Convert between different image formats
Convert between different image forma...
Download THBImage image and vector viewing and processing SDK
Download THBImage image and vector viewing and processing SDK

THBImage Viewer is a small and fast raster picture and vector data viewer.
THBImage Viewer is a small and fast raster picture and vector data viewer.

Convert between different image formats

Use the THBImageEdit object to load one of the supported raster image formats and save them into a different format.

Dim ie As New THBImageEdit
' Load your source file
ie.LoadPictureFromFile "C:\yourfile.jpg", thbifAutoDetect
'Destination filename
strFileNew = "C:\YourPath\YourFile.bmp"
'Set format dependent properties
ie.FileFormatSettings.BMPUseRLE = True
'And save as Windows BMP
ie.SavePictureToFile strFileNew, thbifBMP

In this way you can easily convert between all common raster image formats like PSD, PDF, GIF, JPG, TIF, Jpeg2000, Jbig2, PNG, …

Some fileformats have to be plugged into the THBImageEdit object separately.

' add Jpeg2000
ie.ImportExportDllAdd "THBJ2k20.dll", ""
' add Jbig2
ie.ImportExportDllAdd "THBJbg20.dll", ""