changeset 958:5320a168cc0d

(none)
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 02 May 2011 05:31:36 +0000
parents beed3e7f9d4b
children 37f2938ecd72
files dwtest.c image/test.bmp image/test.png
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Mon May 02 04:45:38 2011 +0000
+++ b/dwtest.c	Mon May 02 05:31:36 2011 +0000
@@ -882,10 +882,11 @@
     
     text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, (int)depth );
     text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, (int)depth );
-    image = dw_pixmap_new_from_file(textbox2, "mac/folder.png");
+    image = dw_pixmap_new_from_file(textbox2, "image/test");
     if(!image)
-        image = dw_pixmap_new_from_file(textbox2, "~/folder.png");
-    
+        image = dw_pixmap_new_from_file(textbox2, "~/test");
+    if(image)
+        dw_pixmap_set_transparent_color(image, DW_CLR_WHITE);
     
     dw_messagebox("DWTest", DW_MB_OK|DW_MB_INFORMATION, "Width: %d Height: %d\n", font_width, font_height);
     dw_draw_rect(0, text1pm, TRUE, 0, 0, font_width*width1, font_height*rows);
Binary file image/test.bmp has changed
Binary file image/test.png has changed