Ejemplo n.º 1
0
 public override void PrintMemoryBitmap(PrinterStation station, Bitmap data, int width, int alignment)
 {
     using (MemoryStream ms = new MemoryStream())
     {
         data.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
         string memorybitmap = InteropCommon.ToStringFromByteArray(ms.ToArray(), _binaryConversion);
         VerifyResult(_cco.PrintMemoryBitmap((int)station, memorybitmap, (int)OPOSPOSPrinterConstants.PTR_BMT_BMP, width, alignment));
     }
 }