#1 2024-09-10 10:07:46

pjain
Member
Registered: 2024-07-02
Posts: 7

Graphics are distorted when DrawMeta function is used in GDIPages

Hi,
   I am using GDIPages to print out a report  with graphics on each page. My data source is a list of meta file.
   When I am trying to use whole page space on either A3/A4 pages, my image is loosing colours . basically it looks like the text is there but the colours are gone.
   I have a doubt that if its an issue because of the graphic is stretched or something else. I am just using below code to draw the meta file in a specific rectangle.

   

      LPdfGDI.DrawMeta(R, TMetafile(AMetafilesList[i])); 
  

Thanks.

Offline

#2 2024-09-13 12:14:04

rvk
Member
Registered: 2022-04-14
Posts: 114

Re: Graphics are distorted when DrawMeta function is used in GDIPages

I don't think we can help without a more complete reproduceable example.
(including the metafiles if not generated by the example)

Offline

#3 2024-09-27 07:51:58

pjain
Member
Registered: 2024-07-02
Posts: 7

Re: Graphics are distorted when DrawMeta function is used in GDIPages

In the below picture, It can be seen that the grey header is not drawn until the end of page.

Capture.jpg

Last edited by pjain (2024-09-27 07:52:47)

Offline

Board footer

Powered by FluxBB