API referenceRendering & Viewer

rasRedraw

Blit an already-rendered IRAS rasterizer's buffer to a

C
void __stdcall rasRedraw(IRAS RasPtr, HDC DC, int32_t DestX, int32_t DestY);
Delphi
procedure rasRedraw(RasPtr: IRAS; DC: HDC; DestX, DestY: Integer); stdcall;

Purpose. Blit an already-rendered IRAS rasterizer's buffer to a device context — the single-buffer counterpart to rasPaint's full page-cache paint loop.

Description. A real, direct ViewerBlitRGB call of the rasterizer's own RGB buffer to (DestX, DestY) in DC — no re-rendering occurs here, it purely repaints whatever the rasterizer last produced (via rasCreateRasterizer(Ex)/rasResizeBitmap/ rasAttachImageBuffer, all of which re-render on their own). Per an inline comment, this was historically a no-op ("Was a no-op; now the viewer can repaint from the cached buffer").

Parameters.

ParameterDescription
RasPtrSource rasterizer.
DCDestination device context.
DestX, DestYBlit destination.

Return value. None.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void rasRedraw(IntPtr RasPtr, UIntPtr DC, int DestX, int DestY);
Area
Rendering & Viewer
Category

Rasterizer/Rendering

Exported names

rasRedraw

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.