Capturing screen

About Monkey 2 Forums Monkey 2 Programming Help Capturing screen

This topic contains 7 replies, has 3 voices, and was last updated by  Mark Sibly 1 year, 11 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8068

    Hezkore
    Participant

    Is there any way to capture the screen (Windows)?
    I’m thinking the entire screen, not just of the application, I want the desktop and everything to be part of the picture.

    #8070

    cocon
    Participant

    This is as far I as go with it, now I need to figure out the datatype conversions. Whoever can continue it, will help a lot. 🙂

    #8082

    Hezkore
    Participant

    Yeah I can’t figure it out either… :/
    That’s for the help though!

    #8084

    Mark Sibly
    Keymaster

    There’s this, but it appears to be c++14 only. I have asked the author if he can backport it to c++11 for us (I’m not moving to c++14 just yet…) but I don’t like our chances.

    In the meantime, here’s some Windows only source…

     

     

    Windows only…

    #8090

    Hezkore
    Participant

    Ah, so that’s why you added some more pixelformats.
    I always get weird colours with it though, almost inverted colours.

    #8091

    Mark Sibly
    Keymaster

    Actually, PixelFormat.RGB8 is just an alias I added for RGB24 – should probably have used RGB24 in the above code to prevent confusion. I recently added a number of GL depth/float pixel formats recently (which aren’t well supported in the Pixmap class yet) and decided I quite like the GL ‘notation’ (which is very similar to mx2 anyway) so have been playing around with switching to it (but leaving the old ones in there). Haven’t decided what to do here in general though.

    But I’m surprised the code doesn’t work for you. What OS are you using? What desktop mode? Can you post a pic?

    #8097

    Hezkore
    Participant

    Windows 10 @ 1080p 32bit.
    I’m not sure, but I think Red and Blue’s been switched.

    #8098

    Mark Sibly
    Keymaster

    > I’m not sure, but I think Red and Blue’s been switched.

    Haha!

    It’s actually doing the same thing here, only my desktop is so psychedelic I didn’t notice!

    Fixed code:

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.