API referenceRendering & Viewer

rasInitialize

Nominally: initialize the page cache's background

C
BOOL32 __stdcall rasInitialize(IPGC CachePtr, TPDFThreadPriority Priority);
Delphi
function rasInitialize(CachePtr: IPGC; Priority: TPDFThreadPriority): LongBool; stdcall;

Purpose. Nominally: initialize the page cache's background rendering with a given thread priority.

Description. In practice, the entire body is C.Busy := False; Result := TruePriority is accepted but never read. Use rasSetThreadPriority (below) to actually set the cache's stored update/render thread priorities.

Parameters.

ParameterDescription
CachePtrTarget page cache — its Busy flag is cleared.
PriorityAccepted but never read.

Return value. True if CachePtr resolves; False otherwise.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Rendering & Viewer
Category

Rasterizer/Rendering

Exported names

rasInitialize

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.