|
代码好下:
gdi_layer_multi_layer_enable();//开启多层支持
matrix_menu_widget_slide.slide_buf = (U8*)med_ext_smalloc(UI_DEVICE_WIDTH * UI_DEVICE_HEIGHT *page *2);
gdi_layer_create_using_outside_memory(
0,
matrix_menu_widget_slide.store_distance_y,
UI_DEVICE_WIDTH,
UI_DEVICE_HEIGHT *page,
&matrix_menu_widget_slide.slide_layer_handle,
matrix_menu_widget_slide.slide_buf,
UI_DEVICE_WIDTH * UI_DEVICE_HEIGHT *page *2);
gdi_layer_push_and_set_active(matrix_menu_widget_slide.slide_layer_handle);
gdi_layer_clear(GDI_COLOR_BLUE); //把背景全刷成蓝色
gdi_layer_set_source_key(TRUE,GDI_COLOR_BLUE); //设置蓝色为通透色
gdi_push_and_set_alpha_blending_source_layer(matrix_menu_widget_slide.slide_layer_handle);
//gui_push_clip();
//gui_set_clip(0,MMI_STATUS_BAR_HEIGHT + MMI_TITLE_HEIGHT,UI_DEVICE_WIDTH - 1,UI_DEVICE_HEIGHT *page);
//gui_show_image(20,360,(PU8) GetImage((U16)(IMG_GLOBAL_L1)));
//gui_show_image(20,150,(PU8) GetImage((U16)(IMG_GLOBAL_L1)));
mmi_matrix_menu_widget_slidelayer_Area();
//gui_pop_clip();
gdi_pop_and_restore_alpha_blending_source_layer();
gdi_layer_pop_and_restore_active();
显示效果见附件图片。
求解决方法 |
|