|
@@ -35,9 +35,15 @@ int main(int argc, char *argv[]) |
|
|
int w = pipi_get_image_width(newimg); |
|
|
int w = pipi_get_image_width(newimg); |
|
|
int h = pipi_get_image_height(newimg); |
|
|
int h = pipi_get_image_height(newimg); |
|
|
|
|
|
|
|
|
while(count--) { |
|
|
|
|
|
|
|
|
while(count--) |
|
|
|
|
|
{ |
|
|
|
|
|
pipi_draw_line(newimg, |
|
|
|
|
|
rand() % w, rand() % h, |
|
|
|
|
|
rand() % w, rand() % h, |
|
|
|
|
|
rand(), |
|
|
|
|
|
0); |
|
|
pipi_draw_line(newimg, |
|
|
pipi_draw_line(newimg, |
|
|
rand() , rand() % h, |
|
|
|
|
|
|
|
|
rand() % w, rand() % h, |
|
|
rand() % w, rand() % h, |
|
|
rand() % w, rand() % h, |
|
|
rand(), |
|
|
rand(), |
|
|
1); |
|
|
1); |
|
|