I am using DirectComposition in conjunction with DirectManipulation to render things. I have some text present on the DirectCompositionVisuals which are chained vertically. I want to pull the pixel data of the selection so that I can do stuff with it. I am trying to do the following but this however results in surface getting cleared
HRESULT hr = DCSurface->BeginDraw(&rect, IID_PPV_ARGS(&dxSurface), &point);
HDC hdcSurface = nullptr;
hr = dxSurface->GetDC(FALSE, &hdcSurface);