LCUI_API void Graph_PrintInfo( LCUI_Graph *graph ) { printf("address:%p\n", graph); if( !graph ) { return; } printf("width:%d, ", graph->w); printf("height:%d, ", graph->h); printf("alpha:%u, ", graph->alpha); printf("%s\n", graph->color_type == COLOR_TYPE_RGBA ? "RGBA":"RGB"); if( graph->quote ) { printf("graph src:"); Graph_PrintInfo(Graph_GetQuote(graph)); } }
void Graph_PrintInfo( LCUI_Graph *graph ) { printf("address:%p\n", graph); if( !graph ) { return; } printf("width:%d, ", graph->w); printf("height:%d, ", graph->h); printf("opacity:%.2f, ", graph->opacity); printf("%s\n", graph->color_type == COLOR_TYPE_ARGB ? "RGBA":"RGB"); if( graph->quote.is_valid ) { printf("graph src:"); Graph_PrintInfo(Graph_GetQuote(graph)); } }