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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - C# SetGDIPlusOptions has no effect?
  FAQ FAQ  Forum Search   Register Register  Login Login

C# SetGDIPlusOptions has no effect?

 Post Reply Post Reply
Author
Message
murpium View Drop Down
Beginner
Beginner
Avatar

Joined: 14 Jun 12
Location: Texas
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote murpium Quote  Post ReplyReply Direct Link To This Post 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

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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
murpium View Drop Down
Beginner
Beginner
Avatar

Joined: 14 Jun 12
Location: Texas
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote murpium Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store