'============ NUOVO tEST DI PROVA
Printer1.Reset
Dim m As Bitmap = pnlMain.Snapshot
m.Resize(200,100,True)
Dim cv As Canvas
cv.Initialize2(m)
If File.Exists(File.DirInternal, "Test22.png") Then
File.Delete(File.DirInternal, "Test22.png")
End If
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "Test22.png", False)
cv.Bitmap.WriteToStream(Out, 100, "PNG")
Out.Close
Dim bmp As Bitmap
bmp.InitializeResize(File.DirInternal, "Test22.png", 576,300, False) 'ignore 576
Dim myimage As AnImage = Printer1.ImageToBWIMage(bmp)
myimage = Printer1.DitherImage2D(myimage, 100) '128
myimage= Printer1.PackImage(myimage)
Printer1.PrintImage(myimage)