diff --git a/components/lazreport/source/addons/pdfexport/lazreportpdfexport.lpk b/components/lazreport/source/addons/pdfexport/lazreportpdfexport.lpk
index 3a097747f6..e2173d3079 100644
--- a/components/lazreport/source/addons/pdfexport/lazreportpdfexport.lpk
+++ b/components/lazreport/source/addons/pdfexport/lazreportpdfexport.lpk
@@ -5,7 +5,7 @@
-
+
@@ -13,6 +13,7 @@
+
@@ -21,7 +22,7 @@
-
+
@@ -43,7 +44,7 @@
-
+
@@ -54,7 +55,7 @@
-
+
diff --git a/components/lazreport/source/addons/pdfexport/lr_e_pdf.pas b/components/lazreport/source/addons/pdfexport/lr_e_pdf.pas
index b3e3b5a433..7b24393a51 100644
--- a/components/lazreport/source/addons/pdfexport/lr_e_pdf.pas
+++ b/components/lazreport/source/addons/pdfexport/lr_e_pdf.pas
@@ -129,7 +129,7 @@ var
begin
PRRect := TPRRect.Create(PRPanel);
PRRect.Parent := PRPanel;
- PRRect.FillColor := View.FillColor;
+ PRRect.FillColor := ColorToRGB(View.FillColor);
PRRect.LineColor := clNone;
PRRect.LineStyle := psSolid;
PRRect.Left := x;
@@ -215,7 +215,6 @@ end;
procedure TfrTNPDFExportFilter.ShowPicture(View: TfrPictureView; x, y, h,
w: integer);
var
- Bitmap: TBitmap;
PRImage: TPRImage;
begin
@@ -225,27 +224,15 @@ begin
PRImage := TPRImage.Create(PRPanel);
PRImage.Parent := PRPanel;
PRImage.Stretch := True;
- PRImage.SharedImage := View.Shared;
+ PRImage.SharedName := View.SharedName;
+ PRImage.SharedImage := (View.SharedName<>'');
+
PRImage.Left := x;
PRImage.Top := y;
PRImage.Height := h;
PRImage.Width := w;
- if View.Picture.Graphic is TJpegImage then
- PRImage.Picture.Graphic := View.Picture.Graphic
- else
- begin
- Bitmap := TBitmap.Create;
- try
- Bitmap.Height := View.Picture.Height;
- Bitmap.Width := View.Picture.Width;
- Bitmap.Canvas.Draw(0, 0, View.Picture.Graphic);
- PRImage.Picture.Bitmap := Bitmap;
- finally
- FreeAndNil(Bitmap);
- end;
- end;
-
+ PRImage.Picture.Graphic := View.Picture.Graphic;
end;
procedure TfrTNPDFExportFilter.ShowShape(View: TfrShapeView; x, y, h, w: integer
@@ -316,8 +303,12 @@ begin
ShowShape(TfrShapeView(View), nx, ny, ndy, ndx);
end else begin
- if (View.FillColor <> clNone) and not (View is TfrBarCodeView) then
- ShowBackGround(View, nx, ny, ndy, ndx);
+
+ if (View.FillColor <> clNone)
+ and not (View is TfrBarCodeView)
+ and not (View is TfrPictureView)
+ then
+ ShowBackGround(View, nx, ny, ndy, ndx);
if View is TfrBarCodeView then
ShowBarCode(TfrBarCodeView(View), nx, ny, ndy, ndx)