I have a program that creates a graphical chart of some data. When the user clicks the save button, the image is saved as a PNG file. That works ok. The problem is that the PNG file has the DPI set at screen resolution (like about 96dpi), but the output is intended for 300 dpi.
Chart1->MakeScreenshot()->SaveToFile(L"chart.png");
Invokes the Firemonkey internal codec for creating the ping file. It works. All I want it to do is not use the screen resolution dpi, but change it to 300 dpi. The PNG dpi parameter is just a reference used by programs that read the image to figure out the physical dimensions of the image. I can change it by loading it into Photoshop, changing the value, then re-saving it. Setting the proper dpi parameter lets other programs, such as Word or OpenOffice scale the image to its proper size when it loads.
So the question is how to tell the Firemonkey codec that generates the PNG file to use a different DPI setting?
PNG Codec DPI
Moderator: 2ffat
PNG Codec DPI
-----------------------------
Scott
Scott
Re: PNG Codec DPI
I have not dug into the FMX source code to verify this, but AFAIK there is no way to specify a DPI manually.
Remy Lebeau (TeamB)
Lebeau Software
Lebeau Software