API referenceRendering & Viewer

rasSetBaseControlSize

Get/set the cache's "base control size" — the reference

C
BOOL32 __stdcall rasGetBaseControlSize(IPGC CachePtr, TI32Point* Value);
void __stdcall rasSetBaseControlSize(IPGC CachePtr, int32_t Width, int32_t Height);
Delphi
function rasGetBaseControlSize(CachePtr: IPGC; var Value: TI32Point): LongBool; stdcall;
procedure rasSetBaseControlSize(CachePtr: IPGC; Width, Height: Integer); stdcall;

Purpose. Get/set the cache's "base control size" — the reference viewport size rasInitBaseObjects (Rasterizer and Page-Cache Lifecycle) also stamps into BaseCtrlW/BaseCtrlH at initialization time.

Description. Both are plain field accessors on BaseCtrlW/ BaseCtrlH. Since rasInitBaseObjects already sets these fields directly from its own Width/Height parameters, rasSetBaseControlSize is mainly useful to independently override the base size afterward (e.g. after a host window resize) without re-running the whole zoom-refit logic rasInitBaseObjects performs.

Parameters.

ParameterDescription
CachePtrTarget page cache.
Width, Height*(Set only)* New base control size.
Value*(Get only)* Output TI32Point.

Return value. rasGetBaseControlSize: True if CachePtr resolves.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void rasSetBaseControlSize(IntPtr CachePtr, int Width, int Height);
Area
Rendering & Viewer
Category

Rasterizer/Rendering

Exported names

rasSetBaseControlSize

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.