blob: b8d8617760140a47a41d705c793f499cca5dc050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<%pre>
#include "grab.h"
using namespace vdrlive;
</%pre>
<%args>
int quality = 80;
int width = 320;
int height = 240;
</%args>
<%cpp>
reply.setContentType("image/jpg");
GrabImageInfo image = LiveGrabImageManager().GetImage();
if ( image.second > 0 )
reply.out().write( image.first.get(), image.second );
</%cpp>
|