Annotation of parser3/src/types/pa_vimage.C, revision 1.7
1.7 ! paf 1: /** @file
1.1 paf 2: Parser: @b image parser type.
3:
4: Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com)
5:
6: Author: Alexander Petrosyan <paf@design.ru>(http://design.ru/paf)
7:
1.7 ! paf 8: $Id: pa_vimage.C,v 1.6 2001/04/11 17:06:14 paf Exp $
1.1 paf 9: */
10:
11: #include "pa_vimage.h"
12: #include "pa_vint.h"
13: #include "pa_vstring.h"
14:
1.3 paf 15: void VImage::set(const String *src, int width, int height,
1.6 paf 16: gdImage* aimage) {
1.5 paf 17: image=aimage;
1.3 paf 18:
1.1 paf 19: // $src
1.3 paf 20: if(src)
21: ffields.put(String(pool(), "src"), NEW VString(*src));
1.1 paf 22: // $width
23: if(width)
24: ffields.put(String(pool(), "width"), NEW VInt(pool(), width));
25: // $height
26: if(height)
27: ffields.put(String(pool(), "height"), NEW VInt(pool(), height));
1.2 paf 28:
29: // defaults
30: // $border[0]
31: ffields.put(String(pool(), "border"), NEW VInt(pool(), 0));
1.1 paf 32: }
E-mail: