下载此文档

MTK图形图象函数.doc


文档分类:IT计算机 | 页数:约3页 举报非法文档有奖
1/3
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/3 下载此文档
文档列表 文档介绍
S32 gdi_image_draw_id(S32 offset_x, S32 offset_y, U16 image_id); offset_x 和 offset_y 是图片左上角的坐标, image _ id 是指向图片的枚举类型, 用法如下: ADD_APPLICATION_IMAGE(MAIN_MENU_MATRIX_PHONEBOOK_ICON,CUST_IM G_PATH"\\\\MainLCD\\\\MainMenu\\\\MATRIX\\\\"); 5、 S32 gdi_image_draw(S32 offset_x, S32 offset_y, U8 *image_ptr); Image_ptr 是用 转化后的图片文件名; 在 MTK 平台里, image_ptr = (U8*)GetImage(image_id); 6、 S32 gdi_image_draw_file(S32 offset_x, S32 offset_y, S8 *image_name); Image_name 是图片的文件名; 7、 S32 gdi_image_get_dimension_id(U16 image_id, S32 *width, S32 *height); S32 gdi_image_get_dimension_file(S8 *image_name, S32 *width, S32 *height); S32 gdi_image_get_dimension(U8 *image_ptr, S32 *width, S32 *height); 获得图片的长宽参数 8、 S32 gdi_image_get_frame_count_id(U16 image_id, S32 *frame_count); S32 gdi_image_get_frame_count_id(U16 image_id, S32 *frame_count); 获得动态图片的帧数画点函数; 6、 void UI_putpixel(s32 x,s32 y,color c); 7 、关于剪切矩形: void UI_set_clip(s32 x1,s32 y1,s32 x2,s32 y2) ; void UI_reset_clip(void) ; void UI_pop_clip(void) ; void UI_set_text_clip(s32 x1,s32 y1,s32 x2,s32 y2) ; void UI_reset_text_clip(void) ; void UI_pop_text_clip(void) ; 画线函数; 颜色为 c 的一条直线: void UI_line(s32 x1,s32 y1,s32 x2,s32 y2,color c); 颜色为 c ,宽度为 w 的一条直线: void UI_wline(s32 x1,s32 y1,s32 x2,s32 y2,color c,s32 w) ; 画一个空心矩形: void UI_draw_rectangle(s32 x1,s32 y1,s32 x2,s32 y2,color c); 填充一个矩形: void UI_fill_rectangle(s32 x1,s32 y1,s32

MTK图形图象函数 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数3
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xxj16588
  • 文件大小74 KB
  • 时间2016-08-14