Get a pixel color on directx11 from the screen


I need to do function like:

RGBTRIPLE GetPixelColor(int x, int y)

to get a color on a single pixel on directx 11 from the actual frame in my screen

For the moment I have this code:

//For each Call to Present() do the following: //Get Device
ID3D11Device* device;
HRESULT gd = pSwapChain->GetDevice(__uuidof(ID3D11Device), (void**)&device);
assert(gd == S_OK); //Get context

Published by CelleSports

CelleSports is a Game development, News outlet, and Social Cell community. Build your cells or teams for any game and start communicating efficiently. Join us in building the number one eSport and gaming community in the World. Join Cell eSports

Leave a comment