This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IScreenDisplay Interface > IScreenDisplay.CacheMemDC Property (ArcObjects .NET 10.5 SDK) |
Memory device context for the specified screen cache.
[Visual Basic .NET] Public Function get_CacheMemDC ( _ ByVal index As Short _ ) As Integer
[C#] public int get_CacheMemDC ( short index );
[C++]
HRESULT get_CacheMemDC(
short index,
long* hDC
);
[C++]
Parameters index [in] index is a parameter of type short hDC [out, retval] hDC is a parameter of type long
Each cache is an offscreen bitmap. Use this property to retrieve the device context (hDc) for the bitmap associated with a particular cache. With the hDc you can, for example, draw the bitmap (cache) in a particular window using DrawCache.