How do i go about reading a bitmap from a file and sending it via a StreamWriter to a printer?
so far i 've been using this code:
VB Code:
Dim i As Integer Dim bBitmap As New Bitmap(p_bmLoc) Dim bByte((bBitmap.Width * bBitmap.Height * 3) - 1) As Byte For y As Integer = 0 To bBitmap.Height - 1 For x As Integer = 0 To bBitmap.Width - 1 Dim oColour As Color = bBitmap.GetPixel(x, y) bByte(i) = oColour.R bByte(i + 1) = oColour.G bByte(i + 2) = oColour.B i += 3 Next Next





Reply With Quote