|
|
|
|
@ -114,6 +114,20 @@ namespace ICSharpCode.Reporting.Pdf
@@ -114,6 +114,20 @@ namespace ICSharpCode.Reporting.Pdf
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override void Visit(ExportImage exportImage) |
|
|
|
|
{ |
|
|
|
|
XImage image = XImage.FromGdiPlusImage(exportImage.Image); |
|
|
|
|
var location = PdfHelper.LocationRelToParent(exportImage); |
|
|
|
|
if (exportImage.ScaleImageToSize) { |
|
|
|
|
xGraphics.DrawImage(image, location.X.ToPoint(), location.Y.ToPoint(), |
|
|
|
|
exportImage.Size.Width.ToPoint(),exportImage.Size.Height.ToPoint()); |
|
|
|
|
} else { |
|
|
|
|
xGraphics.DrawImage(image, location.X.ToPoint(), location.Y.ToPoint(), |
|
|
|
|
exportImage.Image.Size.Width.ToPoint(),exportImage.Image.Size.Height.ToPoint()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override void Visit(ExportLine element){ |
|
|
|
|
var pen = PdfHelper.CreatePen(element); |
|
|
|
|
var fromPoint = PdfHelper.LocationRelToParent(element); |
|
|
|
|
|