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

2023-09-16 Thread Tomaž Vajngerl
Hi, On Tue, Sep 12, 2023 at 6:23 AM Lodev wrote: > > Hi, > > Following sos' suggestion, we tried to get Image Preferred DPI from file > properties. We thought to use this value directly to draw bitmap. After > asking the last question we found a sample in sfx2/source/dialog/dinfdlg.cxx > to

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

2023-09-11 Thread Lodev
Hi, Following sos' suggestion, we tried to get Image Preferred DPI from file properties.  We thought to use this value directly to draw bitmap.  After asking the last question we found a sample in sfx2/source/dialog/dinfdlg.cxx to get this property value.  So we added the following code to

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

2023-09-11 Thread Lodev
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

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

2023-08-31 Thread sos
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

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

2023-08-30 Thread Lodev
Hi, Tomaž Vajngerl 於 2023/8/31 03:13 寫道: Hi, On Tue, Aug 29, 2023 at 9:09 AM Lodev wrote: Sorry if I'm asking a stupid question here. First, I've never seen or used a document with "multiple instances that all point to the same image in the document". That's easy - drag the image while

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

2023-08-30 Thread Tomaž Vajngerl
Hi, On Tue, Aug 29, 2023 at 9:09 AM Lodev wrote: > Sorry if I'm asking a stupid question here. First, I've never seen or > used a document with "multiple instances that all point to the same > image in the document". That's easy - drag the image while holding ctrl and drop. It will make a copy

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

2023-08-29 Thread Lodev
Tomaž Vajngerl 於 2023/8/22 20:17 寫道: Hi, On Mon, Aug 21, 2023 at 10:30 PM Lodev wrote: In fact, when we were doing more test, we found the behavior somewhat strange. We used attachment 170646 in tdf#51510. vcl/source/gdi/vectorgraphicdata.cxx, line 77: // get system DPI

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

2023-08-22 Thread Tomaž Vajngerl
Hi Fernand, On Tue, Aug 22, 2023 at 3:15 PM sos wrote: > > Yes, > > but when using this settings you can avoid to have SVG's with a resolution > who is not adapted to the print-intentsions off the docment. > 254-300 Pixels par Inch for commercial printing > 150 Pixels par Inch for Laser

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

2023-08-22 Thread sos
Yes, but when using this settings you can avoid to have SVG's with a resolution who is not adapted to the print-intentsions off the docment. 254-300 Pixels par Inch for commercial printing 150 Pixels par Inch for Laser printing 96 Pixels par Inch for screen viewing only. Do you mean also that

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

2023-08-22 Thread Tomaž Vajngerl
Hi, On Tue, Aug 22, 2023 at 11:43 AM sos wrote: > Hi, Tomaž, > > maybe you over looked that there is now a user defined property '*Image > Preferred DPI*" for the document, so the resolution off any image must > depend on this settings, who are standard 96 DPI. > I know - I added that :)

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

2023-08-22 Thread Tomaž Vajngerl
Hi, On Mon, Aug 21, 2023 at 10:30 PM Lodev wrote: > > In fact, when we were doing more test, we found the behavior somewhat strange. > > We used attachment 170646 in tdf#51510. > > vcl/source/gdi/vectorgraphicdata.cxx, line 77: > > // get system DPI > Size

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

2023-08-22 Thread sos
Hi, Tomaž, maybe you over looked that there is now a user defined property '*Image Preferred DPI*" for the document, so the resolution off any image must depend on this settings, who are standard 96 DPI. greetz Fernand On 18/08/2023 16:01, Lodev wrote: U ontvangt niet vaak

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

2023-08-21 Thread Lodev
Hi, Tomaž, Tomaž Vajngerl 於 2023/8/11 17:31 寫道: Hi, On Fri, Aug 11, 2023 at 8:06 AM Lodev wrote: Hi, We're trying to fix #tdf51510: "Exporting documents with embedded SVG to doc or docx converts the image to low-resolution pixel graphics" since it bothers us and it seems more and more bugs

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

2023-08-11 Thread Tomaž Vajngerl
Hi, On Fri, Aug 11, 2023 at 8:06 AM Lodev wrote: > > Hi, > > > We're trying to fix #tdf51510: "Exporting documents with embedded SVG to > doc or docx converts the image to low-resolution pixel graphics" since > it bothers us and it seems more and more bugs duplicated or related to > this one.

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

2023-08-11 Thread Lodev
Hi, We're trying to fix #tdf51510: "Exporting documents with embedded SVG to doc or docx converts the image to low-resolution pixel graphics" since it bothers us and it seems more and more bugs duplicated or related to this one.  We changed in vcl/source/gdi/vectorgraphicdata.cxx:78 -