Hi, i just tried to figure out, how it would be possible, that the lite_new_window-size and the lite_new_button-size is the same size like the lite_set_button_image?
For example i've got this code rect.x = 10;rect.y = 220;rect.w = 300;rect.h = 200; lite_new_window(NULL,&rect,DWCAPS_ALPHACHANNEL,liteNoWindowTheme,"test",&lite_window); rect.x = 0; rect.y = 0; lite_new_button(LITE_BOX(lite_window), &rect, liteNoButtonTheme, &button); lite_set_button_image( button, LITE_BS_NORMAL, "fish.png" ); All i want is to read out the size of fish.png, and then create lite_new_window and lite_new_button with the same size as fish.png. Or is there anyway to get "dsc.width" and "dsc.height" of the fish.png? With DirectFB i used... dfb->CreateImageProvider (dfb, "fish.png" , &provider); provider->GetSurfaceDescription (provider, &dsc); After that i usually can read out "dsc.width" and "dsc.height". Thank you for reading : ) __________________________________________________________________________ Verschicken Sie SMS direkt vom Postfach aus - in alle deutschen und viele ausländische Netze zum gleichen Preis! https://produkte.web.de/webde_sms/sms _______________________________________________ LiTE mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/lite
