コード例 #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));
	}
}