1. libgd
  2. Untitled project
  3. gd-libgd

Commits

pajoye  committed ad4477b

- add tga with alpha example image
- remove sgi and pic from the tga code example

  • Participants
  • Parent commits beb1d0c
  • Branches master

Comments (0)

Files changed (2)

File examples/noIconAlpha.tga

Added
New image

File examples/tgaread.c

View file
 #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]);