Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Read/write/display/convert GIF/JPG/BMP


'read/display GIF/JPG/BMP
'VB pictures box can read all three types, but saves only as .bmp

SavePicture Picture1.Picture, "c:\myimage.bmp"

'To save an image as JPG or GIF use one of the freeware DLLs available:

' ijl11.dll from Intel
'picformat32.ocx/dll
'freeimage.dll