Debenu Quick PDF logo

SetGDIPlusOptions

Rendering and printing

Description

Sets various options for the renderer when the GDI+ library is used.

Options 10, 11 and 12 will override options 2 and 3 if they are set to anything other than 0.

Syntax

Delphi

function TDebenuPDFLibrary1511.SetGDIPlusOptions(OptionID, 
  NewValue: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetGDIPlusOptions(OptionID As Long,
  NewValue As Long) As Long

DLL

int DPLSetGDIPlusOptions(int InstanceID, int OptionID, int NewValue)

Parameters

OptionID 0 = Use of GDI+
1 = Text/vector graphics smoothing
2 = Interpolation
3 = Image smoothing
4 = Process null paths
5 = Mono threshold
6 = DLL piggyback
7 = DLL startup
8 = DLL suppress background thread
9 = Enhance thin lines
10 = GDIPlus SmoothingMode
11 = GDIPlus InterpolationMode
12 = GDIPlus PixelOffsetMode
NewValue For use of GDI+:
0 = Do not use GDI+
1 = Use GDI+ (default)
For text/vector graphics smoothing:
0 = No smoothing
1 = Smooth text and vector graphics (default)
For interpolation:
0 = Standard
1 = Accurate (default)
For images:
0 = No smoothing (default)
1 = Smoothing
For null paths:
0 = Ignore
1 = Process (default)
For the mono threshold:
0 = No thresholding (default)
1..255 = Threshold level
6 = DLL piggyback
7 = DLL startup
8 = DLL suppress background thread
For DLL piggyback:
0 = Do not allow
1 = Allow (reuse existing DLL instance)
For DLL startup (GdiplusStartup/GdiplusShutdown)
0 = Never call
1 = Don't call if piggybacking on existing DLL
2 = Always call
For DLL suppress background thread:
0 = No (do not suppress)
1 = Yes (suppress background thread)
For Enhance thin lines:
0 = Do nothing (default)
1 - 9 = Thicken lines smaller than 1 device unit to thickness specified
For GDIPlus SmoothingMode
0 = smDefault, 1 = smHighSpeed, 2= smHighQuality, 3 = smNone, 4 = smAntiAlias
For GDIPlus InterpolationMode
0 = imDefault, 1 = imLowQuality, 2 = imHighQuality,
3 = imBilinear, 4 = imBicubic, 5 = NearestNeighbor
6 = imHighQualityBilinear, 7 = imHighQualityBicubic
For GDIPlus PixelOffsetMode
0 = poDefault, 1 = poHighSpeed, 2 = poHighQuality
4 = poNone, 4 = poHalf

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport