VB .NET Bitmap to byte array

  • Thread starter Thread starter saima ashraf
  • Start date Start date
S

saima ashraf

Hi,
I have a bmp and i need to print it. Now the printing api that is
provided by my client takes a one dimensional byte array. If i convert a
bmp into a byte array using streams, it prints wierd caracters instead
of the pic.

How can i convert bmp into one dim array and get it printed?
btw my PDA is CASIO IT-500.

Looking forward to ur cooperation.
regards,
Saima.
 
Hi Saima,

I wrote an article based on some source code from Tim Gerken. It takes a
Control and puts the bitmap pixel data into a byte array. It is in C# and
uses unsafe code blocks though. Let me know if you have any questions.

http://msdn.microsoft.com/library/en-us/dnnetcomp/html/scibf.asp

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top