API reference › Rendering & Viewer
rasGetBaseControlSize
Get/set the cache's "base control size" — the reference
BOOL32 __stdcall rasGetBaseControlSize(IPGC CachePtr, TI32Point* Value);
void __stdcall rasSetBaseControlSize(IPGC CachePtr, int32_t Width, int32_t Height);
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.
| Parameter | Description |
|---|---|
CachePtr | Target 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)
[return: MarshalAs(UnmanagedType.Bool)]
Rasterizer/Rendering
rasGetBaseControlSize
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.