Monday, June 23, 2008

T8BitBmp DLL

T8BitBmp converts any images with any formats to 8 Bit Depth Bitmap.

Usage Pattern:

T8BitBmp.T8BitBmp.BitConvert(ImageObj As System.Drawing.Bitmap) As System.Drawing.Bitmap


How to import DLL to Visual Studio?

Create a new Visual Basic Windows Application project. In menubar go to Project>Add Reference... . In new windows go to Browse tab. In File name field insert the path of your dll & press OK. Now you can use the DLL (Class Library).


Code Example:

Button1.Click

Dim mypicture As New Bitmap("D:\My Pictures\Picture1.jpg")
Dim newpicture As Bitmap
newpicture = T8BitBmp.T8BitBmp.BitConvert(mypicture)
newpicture.Save("D:\My Pictures\NewPicture1.bmp")

End Sub


Download 6 KB
.ZIP = .DLL + .VB Source (Can be used in Visual Studio 2005 & 2008)

No comments: