Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
C# SetGDIPlusOptions has no effect? |
Post Reply
|
| Author | |
murpium
Beginner
Joined: 14 Jun 12 Location: Texas Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: C# SetGDIPlusOptions has no effect?Posted: 15 Jun 12 at 4:30PM |
|
I do not see a difference when setting any of the options provided by SetGDIPlusOptions
For instance, according to http://www.quickpdflibrary.com/help/quickpdf/SetGDIPlusOptions.php , SetGDIPlusOptions(3,1) should turn Image smoothing on. SetGDIPlusOptions(2, 0) should change interpolation from the default of 1 (for accurate) to 0 (for standard). When I execute DARenderPageToFile to create a TIFF or G4 TIFF, I see no difference in the output TIFF no matter which of these options I change. Running on Windows 7. I assume GDI+ is being used for the rendering but I do not know how to tell. Or perhaps I don't have the correct understanding of what SetGDIPlusOptions actually does. Perhaps these settings do not apply to TIFFs?
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Jun 12 at 7:02PM |
|
It depends on your win-version.
Not all win-versions work with gdiplus. Here are threads regarding this fact. Try the search function here (at the top, right). Cheers, Ingo |
|
![]() |
|
murpium
Beginner
Joined: 14 Jun 12 Location: Texas Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Jun 12 at 7:57PM |
|
Ingo,
I have used the search function. In fact, a search for "SetGDIPlusOptions" returns nothing but my post here. Looks like no one has asked about this function before. Documentation claims that Windows Vista and Server 2008 and up should have GDI+ and be able to do it. GDI+ is on this computer because I can use option 10 on DARenderPageToFile to create a G4 TIFF, a feature that appears to only work with the updated version of GDI+ available on Windows Vista and up. So my question remains, why does SetGDIPlusOptions appear to do nothing at all?
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Jun 12 at 10:00PM |
|
Hi Murpi!
On this page at the top, right side: "Advanced search" with gdi and xp as searchstrings... Cheers, Ingo |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Jun 12 at 10:13AM |
|
The GDIPlusOptions were better supported in the older version of QPL. Over time the need to use them has been reduced as we automatically turn some of these options on and off depending on what we are rendering. ie. Antialiasing is turned off when drawing images otherwise tiled images look dreadful. We have optimised the rendering to give the best performance vs speed when using GDI+. GDI+ is not the easiest graphics library to use for a PDF renderer and settings have to be tweaked dynamically to attain the best output results.
Here is my understanding of where each option stands - I would need to review the code to confirm. Option 1 - now defaults to the optimal rendering to make text readable at all sizes. Option 2 - ? Option 3 - most likely redundant now. Option 4 should not be used as it causes strange behaviour with some PDFs. Option 5 only works with RenderPageToFile type functions when using option 10 to export Group 4 tiff. Only works in GDI+ 1.1 - ie Win7, Vista, Server 2008. It doesn't work on XP or Server 2003. Andrew.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store