So Now I have my SPV e650, printing photo's direct to a Bluetooth connected printer.
I went for a totally crude solution, which just looks for black/white pixels in an image. So with buffer being a stringbuilder we're going to send out to the printer go have a peek at...
public void LoadImage(Bitmap _bmp, int x, int y) { buffer.Append("EG "); buffer.Append("4 "); buffer.Append(_bmp.Height + " "); buffer.Append(x + " "); buffer.Append(y + " "); for (int xcount = 0; xcount < _bmp.Width; xcount++) { for (int ycount = 0; ycount < _bmp.Height; ycount++) { int gotcol= _bmp.GetPixel(xcount, ycount).ToArgb(); if (gotcol == -1) buffer.Append("F"); else buffer.Append("0"); } } buffer.Append(eol); }
Theme design by Jelle Druyts
Pick a theme: BlogXP calmBlue
My Virtual Earth Balloon Races www.racingballoon.com Richard JonesPowered By The Fridge Server