Rev 8156 | Rev 8162 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8156 | Rev 8158 | ||
---|---|---|---|
Line 109... | Line 109... | ||
109 | if(image==NULL) error("image_creation_failure"); |
109 | if(image==NULL) error("image_creation_failure"); |
110 | else { |
110 | else { |
111 | color_white=gdImageColorAllocate(image,255,255,255); |
111 | color_white=gdImageColorAllocate(image,255,255,255); |
112 | color_black=gdImageColorAllocate(image,0,0,0); |
112 | color_black=gdImageColorAllocate(image,0,0,0); |
113 | color_bounder=gdImageColorAllocate(image,1,2,3); |
113 | color_bounder=gdImageColorAllocate(image,1,2,3); |
- | 114 | color_frame=gdImageColorAllocate(image,254,254,254); |
|
114 | } |
115 | } |
115 | } |
116 | } |
116 | 117 | ||
117 | /* new image */ |
118 | /* new image */ |
118 | void obj_new(objparm *pm) |
119 | void obj_new(objparm *pm) |
119 | { |
120 | { |
120 | if(image) { |
121 | if(image) { |
121 | gdImageDestroy(image);image=NULL; |
122 | gdImageDestroy(image);image=NULL; |
122 | } |
123 | } |
123 | if(pm->pcnt>=2) |
124 | if(pm->pcnt>=2) { obj_size(pm); gdImageRectangle(image,0,0,sizex-1,sizey-1,color_frame);} |
124 | else sizex=sizey=0; |
125 | else sizex=sizey=0; |
125 | saved=0; |
126 | saved=0; |
126 | } |
127 | } |
127 | 128 | ||
128 | /* new image */ |
129 | /* new image */ |