打扰了,我是采用以下方式来出力图片的。
using (TiffExport tiff = new TiffExport())
{
try
{
String TiffFilePath = Path.Combine(Directory.GetCurrentDirectory(),
Path.ChangeExtension(this.GetType().Assembly.GetName().Name, "tif"));
prt.Run();
tiff.CompressionScheme = CompressionScheme.None;
tiff.DpiX = 96;
tiff.DpiY = 96;
tiff.Export(prt.Document, TiffFilePath);
}
}
|