Page 6 of 6 FirstFirst ... 456
Results 51 to 53 of 53

Thread: [C#] How to screenshot in MOHAA?

  1. #51
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Quote Originally Posted by own3mall View Post
    http://stackoverflow.com/questions/3...gl-application

    Not sure if that would work, but I could try it. Just trigger a new class instance of that code from my button's click event. Not sure if it would work since I really don't understand much of anything when it comes to OpenGL or DirectX, but maybe that's all I'd need to do... unless you see some code from the above link which needs to be adjusted specifically for mohaa.
    Yeh just follow the answers and ignore that dc and context shit. it is not necessary.
    Last edited by RyBack; February 13th, 2017 at 04:25 PM.

  2. #52
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    I'm not sure if this will help, but I wrote this a while back. I used bits and pieces from other sources, but it works well. PNG is lossless so the quality is really good and small compared to other image formats. Maybe this will help you achieve what you want. This was written in c++ using the GDI+ API.

    http://x-null.net/James/portfolio/co...ot-Application

  3. #53
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Quote Originally Posted by James View Post
    I'm not sure if this will help, but I wrote this a while back. I used bits and pieces from other sources, but it works well. PNG is lossless so the quality is really good and small compared to other image formats. Maybe this will help you achieve what you want. This was written in c++ using the GDI+ API.

    http://x-null.net/James/portfolio/co...ot-Application
    BitBlt *sometimes* gives black screens. It is dwm related issue.
    And i dunno if it lags.
    I feel ages ahead of this thread. The idea that i searched and tried for weeks to get the most reliable approach of ss'ing mohaa and then figure this thread makes me feel like i'm actually useful in the community .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •