High Resolution EMF Files losing text clarity when loading into Report Builder.
In several of our reports, we load a company logo into the report in a ppImage. We're encountering an issue where we're trying to load a high resolution EMF file (23000 x 7000), but the text in the file is so down sampled that it appears to be cut off or missing. Is there a way to handle this down sampling? We're using RBuilder 22.04 in Delphi 12.2.
Thank you!
Thank you!
Comments
EMF files (Enhanced MetaFiles) are sets of Windows GDI commands that render an image as vector graphics. This means that while the original height and width of the EMF is large, the accuracy will not change when it is resized because all items will be redrawn for the new size.
The exception is that if a pixel-based image such as a bitmap is embedded inside the EMF. If this is the case (especially if text is present in the bitmap) noticeable scaling can occur. ReportBuilder does not scale any EMF renderings when displaying them to the screen however accuracy loss will occur at certain low zoom levels in the viewer/previewer. Zooming in should solve the problem.
This is not mentioned, but are you by chance exporting to PDF and experiencing image scaling for embedded bitmaps in your EMF files? If so, you need to set the PDFSettings.ScaleImages property to False. This property is True by default to conserve space. Note that if you are loading templates, this property needs to be set after the template is loaded.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com