Re: #tdf51510: Change the DPI to get better resolution, but failed the unit test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

sos 於 2023/8/31 17:53 寫道:

Sorry to come back to this: every document has a property called "Image Preferred DPI" that can be used to represent the printing intentions of that document.

Apparent dimensions are a result of deviding the available pixels in the Image by the print intentions . if the user like to send the document to a professional printing house then all  images need to have a DPI of minimal 254, laser printers need 150 DPI  and on screen presentations 96 DPI

Tomaz has this implemented a feature called "Image Preferred DPI" so  the dimensions of an image in the document can been checked/controled  by the number of pixels in the image and the print intentions off a document.

With a Preferred DPI of 254 and 2450 pixels in the image, the image can be displayed at a maximum size of 10 inches. If the image is smaller, then fewer than 2450 pixels are needed. So the "Image Preferred DPI" can be used to determine the "Print Intentions" for a Document, and it can easily calculate how many DPI or pixels an image needs.
grtz
Fernand


Sorry for disturbing again, but we're not experienced enough.

Following your instruction, we thought about getting the "Image Preferred DPI" property and used it as aDPI when creating bitmaps.  That way, at least user could try to assign a large DPI to get better resolution.  However we failed to find out how to get it.  We know it is in File-Properties and we know it is set in sfx2/source/dialog/dinfdlg.cxx,

                xProps->setPropertyValue("ImagePreferredDPI", uno::Any(nImagePreferredDPI));

But we couldn't find out how to get this "ImagePreferredDPI" property value and use it in vcl/source/gdi/vectorgraphicdata.cxx.  A little more help here please?


Dev




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux