File: README.txt

package info (click to toggle)
clanlib 1.0~svn3827-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 24,632 kB
  • ctags: 16,580
  • sloc: cpp: 101,591; xml: 6,410; makefile: 1,743; ansic: 463; perl: 424; php: 247; sh: 53
file content (14 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
         Name: ScreenShot
       Status: Windows(Y), Linux(Y)
        Level: Intermediate
   Maintainer: Core developers
      Summary: screen shot, save png

This example shows how to get the screen as a CL_Surface and how to save the
CL_Surface as a PNG using libPNG. The PNG saving code is a hack; at the time
of writing ClanLib itself is NOT able to save images. It is planned in a future
version of ClanLib, though.

You will see a screen, can press space and the screen will be saved to a png file.
You can look at this png file with your favourite picture viewer, and see if it
is the same as shown on the screen.