8.1 图像API
8.1 图像API
|
Routine |
Description |
|
Drawing related functions |
|
|
GUI_AddRect() |
调整矩形框的大小 |
|
GUI_GetClientRect() |
Returns the current available drawing area. |
|
GUI_GetDrawMode() |
Returns the current drawing mode. |
|
GUI_GetPenSize() |
Returns the current pen size in pixels. |
|
GUI_GetPixelIndex() |
Returns the color index of a given position. |
|
GUI_SetClipRect() |
Sets the rectangle used for clipping. |
|
GUI_SetDrawMode() |
Sets the drawing mode. |
|
GUI_SetPenSize() |
Sets the pen size in pixels. |
|
Basic drawing routines |
|
|
GUI_Clear() |
Fills the display / the active window with the background color. |
|
GUI_ClearRect() |
Fills a rectangular area with the background color. |
|
GUI_CopyRect() |
Copies a rectangle area on the display |
|
GUI_DrawGradientH() |
Draws a rectangle filled with a horizontal color gradient. |
|
GUI_DrawGradientV() |
Draws a rectangle filled with a vertical color gra- dient. |
|
GUI_DrawGradientRoundedH() |
Draws a rectangle with rounded corners filled with a horizontal color gradient. |
|
GUI_DrawGradientRoundedV() |
Draws a rectangle with rounded corners filled with a vertical color gradient. |
|
GUI_DrawPixel() |
Draws a single pixel. |
|
GUI_DrawPoint() |
Draws a point. |
|
GUI_DrawRect() |
Draws a rectangle. |
|
GUI_DrawRectEx() |
Draws a rectangle. |
|
GUI_DrawRoundedFrame() |
Draws a frame with rounded corners. |
|
GUI_DrawRoundedRect() |
Draws a rectangle with rounded corners. |
|
GUI_FillRect() |
Draws a filled rectangle. |
|
GUI_FillRectEx() |
Draws a filled rectangle. |
|
GUI_FillRoundedRect() |
Draws a filled rectangle with rounded corners. |
|
GUI_InvertRect() |
Invert a rectangular area. |
|
Alpha blending |
|
|
GUI_EnableAlpha() |
Enables/disables automatic alpha blending |
|
GUI_PreserveTrans() |
Makes sure that alpha channel remains after drawing operations. |
|
GUI_RestoreUserAlpha() |
Restores the previous state of user alpha blend- ing |
|
GUI_SetAlpha() |
Sets the current alpha blending value. (Obso- lete) |
|
GUI_SetUserAlpha() |
Sets an additional value which is used to calcu- late the actual alpha blending value to be used. |
|
Drawing bitmaps |
|
|
GUI_DrawBitmap() |
Draws a bitmap. |
|
GUI_DrawBitmapEx() |
Draws a scaled bitmap. |
|
GUI_DrawBitmapMag() |
Draws a magnified bitmap. |
|
GUI_SetAlphaMask8888() |
Could be used for setting an additional AND and OR mask to be used for drawing the pixels of 32bpp bitmaps. |
GUI_SetClipRect()
GUI_RECT Rect = { , , , }, Rect2;
GUI_AddRect(&Rect2, &Rect, -);
// GUI_SetClipRect(&Rect2); // 切掉,不会影响该方框。
GUI_FillRectEx(&Rect);
GUI_Delay();
// GUI_SetClipRect(NULL);
GUI_SetColor(GUI_GREEN);
GUI_FillRectEx(&Rect);

GUI_SetClipRect(&Rect2); // 切掉,不会影响该方框。
GUI_FillRectEx(&Rect);
GUI_Delay();
// GUI_SetClipRect(NULL);
GUI_SetColor(GUI_GREEN);
GUI_FillRectEx(&Rect);

GUI_SetClipRect(&Rect2); // 切掉,不会影响该方框。
GUI_FillRectEx(&Rect);
GUI_Delay();
GUI_SetClipRect(NULL);
GUI_SetColor(GUI_GREEN);
GUI_FillRectEx(&Rect);

8.1 图像API的更多相关文章
- java9新特性-14-多分辨率图像 API
1.官方Feature 251: Multi-Resolution Images 263: HiDPI Graphics on Windows and Linux 2.产生背景 在Mac上,JDK已经 ...
- android 5.0 受欢迎的API简介
android 5.0 作为系统的一次重大升级,给用户和开发者带来了全新的体验.Material Design不但在视觉和操作上更胜一筹,扩展UI工具包同时也引入了大量新的API. 1. 3D视图和实 ...
- VR原理讲解及开发入门
本文是作者obuil根据多年心得专门为想要入门的VR开发者所写,由52VR网站提供支持. 1. VR沉浸感和交互作用产生的原理: 在之前,我们观看一个虚拟的创造内容是通过平面显示器的,52VR ...
- Android内存溢出解决方案(OOM)
众所周知,每个Android应用程序在运行时都有一定的内存限制,限制大小一般为16MB或24MB(视平台而定).因此在开发应用时需要特别关注自身的内存使用量,而一般最耗内存量的资源,一般是图片.音频文 ...
- Android处理图片OOM的若干方法小结 (推荐)
众所周知,每个Android应用程序在运行时都有一定的内存限制,限制大小一般为16MB或24MB(视平台而定).因此在开发应用时需要特别关注自身的内存使用量,而一般最耗内存量的资源,一般是图片.音频文 ...
- windows类书的学习心得(转载)
原文网址:http://www.blogjava.net/sound/archive/2008/08/21/40499.html 现在的计算机图书发展的可真快,很久没去书店,昨日去了一下,真是感叹万千 ...
- 微信公众号与HTML 5混合模式揭秘2——分享手机相册中照片
本书是分享微信jssdk开发的第二篇. 4.2.1 项目需求 需求说明:实现微信端的手机用户,点击按钮选取1张图片,分享到朋友圈. 4.2.2 需求分解 通过对需求的了解,可以将其分解为: ( ...
- Qt 学习之路 :Qt 模块简介
Qt 5 与 Qt 4 最大的一个区别之一是底层架构有了修改.Qt 5 引入了模块化的概念,将众多功能细分到几个模块之中.Qt 4 也有模块的概念,但是是一种很粗的划分,而 Qt 5 则更加细化.本节 ...
- [QT]QT概述
QT概述 基于C++的GUI开发框架,跨平台.Qt 是一个用于桌面系统和嵌入式开发的跨平台应用程序框架. QT是挪威TROLLTECH公司开发的跨平台C++工具,在UNIX下非常出名:他的宗旨是“一次 ...
随机推荐
- php 字符串 定界符 json_last_error()
字符串的3种赋值 1:单引号 $str = '111111111111 '; 2:双引号 $str =" 11111111111 "; 3:定界符 $str = <<& ...
- Oracle 用户概念与基本操作
目录 目录 Oracle的用户 通过系统用户来登陆SQLPlus system和sys的区别 查看登陆的用户 启用和锁定一个用户 启用用户 锁定用户 创建用户 修改用户 删除用户 角色权限 常用的用户 ...
- Oracle10gr2 开机自启动脚本
目录 目录 软件环境 Oracle服务启动停止重启脚本 软件环境 操作系统 RHEL6.1 软件 Oracle10gr2 Oracle服务启动.停止.重启脚本 su - oracle cd /u01/ ...
- Jmeter beanshell断言 org.json.jar包下载
链接:https://pan.baidu.com/s/1O01ODjlKyqmz2NyDT0MCww 提取码:a5va 欢迎关注微信公众号:软件测试汪,qq技术交流群:809111560
- 【狼】unity3d 安卓播放视频替代视频纹理
http://www.cnblogs.com/zhanlang96/p/3726684.html 原创,有问题或错误的话希望大家批评指正 导出apk,是不能用电影纹理的,所以我们只能用这个办法 这个 ...
- 导数与偏导数 Derivative and Partial Derivative
之前做了很长时间“罗辑思维”的听众,罗胖子曾经讲起过,我们这一代人该如何学习.其中,就讲到我们这个岁数,已经不可能再去从头到尾的学习一门又一门工具课程了,而是在学习某一领域时,有目的的去翻阅工具课程中 ...
- 关于原生js中ie的attacheEvent事件用匿名函数改变this指向后,不能用detachEvent删除绑定事件的解决办法?
博客搬迁,给你带来的不便,敬请谅解! http://www.suanliutudousi.com/2017/11/28/%e5%85%b3%e4%ba%8e%e5%8e%9f%e7%94%9fjs%e ...
- leetcode.数组.565数组嵌套-Java
1. 具体题目 索引从0开始长度为N的数组A,包含0到N - 1的所有整数.找到并返回最大的集合S,S[i] = {A[i], A[A[i]], A[A[A[i]]], ... }且遵守以下的规则.假 ...
- Python - 元组 , range
元组和元组嵌套 元组: 俗称不可变的列表.又被成为只读列表, 元组也是python的基本数据类型之一, 用小括号括起来, 里面可以放任何数据类型的数据, 查询可以. 循环也可以. 切片也可以. 但就是 ...
- Spring中AOP的基于xml开发和配置
pom文件: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http ...