home *** CD-ROM | disk | FTP | other *** search
- #include "ray.h"
- #include "globals.h"
- #include "palobj.h"
- #include "scrconf.h"
- #include "palette.h"
-
- class Scr_Capturer : public palobj {
- public:
- Scr_Capturer() : palobj() {
- holdimage=TRUE;
- };
- Init_Capture() {
- image[0]=buff;
- width=Get_Phys_Screen_Width();
- height=Get_Phys_Screen_Height();
- image_size=width*height;
- palette[0]=NewPtr(768);
- Get_Palette(palette[0],0,256);
- }
- };
-
-
-
- void Screen_Capture(PCHAR filename) {
- Scr_Capturer the_cap;
- the_cap.Init_Capture();
- the_cap.assignoutfile(filename);
- the_cap.Write();
- }
-
-