cvs: gd /libgd/tests bug00002_3.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1167969787@cvsserver>
pajoye		Fri Jan  5 04:03:07 2007 UTC

  Modified files:              
    /gd/libgd/tests	bug00002_3.c 
  Log:
  - #2, #32, add transparent color to each image (see #32)
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/tests/bug00002_3.c?r1=1.1&r2=1.2&diff_format=u
Index: gd/libgd/tests/bug00002_3.c
diff -u gd/libgd/tests/bug00002_3.c:1.1 gd/libgd/tests/bug00002_3.c:1.2
--- gd/libgd/tests/bug00002_3.c:1.1	Fri Jan  5 02:41:13 2007
+++ gd/libgd/tests/bug00002_3.c	Fri Jan  5 04:03:07 2007
@@ -1,4 +1,4 @@
-/* $Id: bug00002_3.c,v 1.1 2007/01/05 02:41:13 pajoye Exp $ */
+/* $Id: bug00002_3.c,v 1.2 2007/01/05 04:03:07 pajoye Exp $ */
 #include <gd.h>
 #include <stdio.h>
 
@@ -11,14 +11,18 @@
 
 	fputs("flag 0\n", stdout);
 	im = gdImageCreate(150, 150);
+
+
 	tile = gdImageCreateTrueColor(36, 36);
+
 	tile_white = gdImageColorAllocate(tile,255,255,255);
-	tile_black = gdImageColorAllocate(tile,0,0,0);
+	tile_black = gdImageColorAllocate(tile,55,0,0);
 	im_white = gdImageColorAllocate(im,255,255,255);
 	im_black = gdImageColorAllocate(im,0,0,0);
 
 	gdImageFill(tile, 0,0, tile_white);
-
+	gdImageColorTransparent(tile, tile_black);
+	gdImageColorTransparent(im, im_black);
 
 	/* create the dots pattern */
 	for (x=0;x<36;x+=2) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.