Atlas - README.txt
Home / ext / SDL / examples / renderer / 17-read-pixels Lines: 1 | Size: 584 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1This example creates an SDL window and renderer, and draws a 2rotating texture to it, reads back the rendered pixels, converts them to 3black and white, and then draws the converted image to a corner of the 4screen. 5 6This isn't necessarily an efficient thing to do--in real life one might 7want to do this sort of thing with a render target--but it's just a visual 8example of how to use SDL_RenderReadPixels(). 9 10A better, but less visual, use of SDL_RenderReadPixels() is to make 11screenshots: you grab the current contents of the screen, and save the pixels 12as a bitmap file or whatever. 13[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.