## Display Device Driver Reference for OS/2

[prev][next][parent][TOC]

### CopyVRAMToMemory

This function copies a bit map from VRAM to system memory and performs the exact opposite function of CopyMemoryToVRAM. It is used by PIXBLT.C, as well as CORVBITM.C, EDDSCNLR.C, and EDDBSETP.C, when it is necessary to read memory.

pVOID pSystemMemory - Pointer to the system-memory bit map to copy.

ULONG pVRAMAddress - Pointer to the source in VRAM.

ULONG width - Width in pels.

ULONG height - Height in scanlines.

ULONG format - Flags indicating the pel depth of pSystemMemory, can be 1, 8 , 16, or 24 bits-per-pel.