我正在尝试打印多维tiff。这本书有3页,使用可变的imagetoprint。所以我写了下面的代码,不幸的是只打印了第一个尺寸。所有其他都打印在空纸上。如果我将图像从内存保存到文件中,irfanview会正确显示所有页面...
谁能给我提示?
public void print(Bitmap imageToPrint, string printerName, int pagesToPrint)
{
try
{
printmap = imageToPrint;
cur_page = 0;
max_pages = pagesToPrint;
m.Top = 1 * dpi; // Set a 1' margin, from the top
m.Left = 1.25f * dpi; // Set a 1.25' margin, from the left
m.Bottom = printmap.Height - m.Top; // 1', from the bottom
m.Right = printmap.Width; // rechter Rand so weit wie es eben geht
m.Width = printmap.Width - (m.Left * 2); // Get the …Run Code Online (Sandbox Code Playgroud)