예제 #1
0
파일: LCUI_Graph.c 프로젝트: fshunj/LCUI
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));
	}
}
예제 #2
0
파일: graph.c 프로젝트: WhatDream/LCUI
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));
	}
}