diff options
author | pajoye <none@none> | 2007-10-08 07:23:20 +0000 |
---|---|---|
committer | pajoye <none@none> | 2007-10-08 07:23:20 +0000 |
commit | ad4477b0cb5c2c8b38760b9bdc8b45a99cec1fdf (patch) | |
tree | 01f7be86fe08bbce970937291fd92900b54a5dce | |
parent | beb1d0c7c79ee5623281bdc3fb496a54ae2c13ca (diff) | |
download | libgd-ad4477b0cb5c2c8b38760b9bdc8b45a99cec1fdf.tar.gz |
- add tga with alpha example image
- remove sgi and pic from the tga code example
-rw-r--r-- | examples/noIconAlpha.tga | bin | 0 -> 153682 bytes | |||
-rw-r--r-- | examples/tgaread.c | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/noIconAlpha.tga b/examples/noIconAlpha.tga Binary files differnew file mode 100644 index 0000000..3af87b4 --- /dev/null +++ b/examples/noIconAlpha.tga diff --git a/examples/tgaread.c b/examples/tgaread.c index 909b184..e5d6df0 100644 --- a/examples/tgaread.c +++ b/examples/tgaread.c @@ -8,17 +8,17 @@ #include <gd.h> #include <stdio.h> #include <stdlib.h> + int main() { gdImagePtr im; FILE *fp; - char path[3][2048]; + char path[4][2048]; int i; char dst[2048]; - sprintf(path[0], "noIcon.tga"); - sprintf(path[1], "noIcon.sgi"); - sprintf(path[2], "noIcon.pic"); + sprintf(path[0], "noIconAlpha.tga"); + sprintf(path[1], "noIcon.tga"); for (i = 0; i < 2; i++) { printf("opening %s\n", path[i]); |