- add tga with alpha example image

- remove sgi and pic from the tga code example
master
pajoye 2007-10-08 07:23:20 +00:00
parent beb1d0c7c7
commit ad4477b0cb
2 changed files with 4 additions and 4 deletions

BIN
examples/noIconAlpha.tga Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View File

@ -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]);