Skip to content

Pixel #4

Description

@jrsmile

Hi,
would you be so kind and explain to me what would be necessary to get raw access to the image captured? i would like to spit out the pixelcolors on the std output.
for example
g_DXGIManager.SetCaptureSource(CSMonitor1);
RECT rcDim;
rcDim.left = 1;
rcDim.top = 1;
rcDim.right = 361;
rcDim.bottom = 2;
hr = g_DXGIManager.GetOutputBits(pBuf, rcDim);
printf(pBuf)

i was able to get some output but could not recognice any pixel colors.

my endgoal would be a list of uniq colors in a known area on a known monitor and how much pixels there are of.
so a call of the exe would result in:
0xFF0000,2
0x00FF00,20
0x0000FF,30
0x000000,100
0xFFFFFF,200

Thanks in Advance,
JR

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions