当前位置:网站首页>LVGL 8.2 Image
LVGL 8.2 Image
2022-06-30 10:54:00 【Fairy sword love】
establish Image
static void lv_example_img_1(void)
{
LV_IMG_DECLARE(img_cogwheel_argb); // img_cogwheel_argb Picture resource statement
lv_obj_t* img1 = lv_img_create(lv_scr_act()); // establish Image object
lv_img_set_src(img1, &img_cogwheel_argb); // Set the picture resource to img_cogwheel_argb
lv_obj_align(img1, LV_ALIGN_CENTER, 0, -20); // LV_ALIGN_CENTER Alignment
lv_obj_set_size(img1, 200, 200); // Set size
lv_obj_t* img2 = lv_img_create(lv_scr_act()); // establish Image object
lv_img_set_src(img2, LV_SYMBOL_OK "Accept"); // Set the picture resource to internal LV_SYMBOL_OK Symbols and Accept Character display
lv_obj_align_to(img2, img1, LV_ALIGN_OUT_BOTTOM_MID, 0, 20);//img2 alignment img1 Center offset of bottom outline of 0,20 alignment
}
Running effect

Set the gear picture size to 100,100
clv_obj_set_size(img1, 100, 100); // Set size
Running effect

Set the gear picture size to 300,300
clv_obj_set_size(img1, 300, 300); // Set size
Running effect

边栏推荐
- 经典面试题:负责的模块,针对这些功能点你是怎么设计测试用例的?【杭州多测师】【杭州多测师_王sir】...
- Skill combing [email protected] somatosensory manipulator
- 05_Node js 文件管理模块 fs
- Use keil5 software to simulate and debug gd32f305 from 0
- 中国将强制统一充电接口,苹果如不低头,iPhone将被踢出中国市场
- Criu enables hot migration
- Skill sorting [email protected]+adxl345+ Motor vibration + serial port output
- 煥發青春的戴爾和蘋果夾擊,兩大老牌PC企業極速衰敗
- LVGL 8.2 Drop down in four directions
- Robotframework learning notes: environment installation and robotframework browser plug-in installation
猜你喜欢

无心剑中译狄金森《灵魂择其伴侣》
[email protected]+adxl345+ Motor vibration + serial port output"/>Skill sorting [email protected]+adxl345+ Motor vibration + serial port output

吴恩达2022机器学习专项课测评来了!

The intelligent DNA molecular nano robot model is coming

小程序中读取腾讯文档的表格数据

go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)

ArcGIS PRO + PS vectorized land use planning map

Go zero micro Service Practice Series (VIII. How to handle tens of thousands of order requests per second)

Review of mathematical knowledge: curve integral of the second type
![[STL source code analysis] iterator](/img/e8/7c69cf6e96ecfa053494397a21eff0.jpg)
[STL source code analysis] iterator
随机推荐
Gd32 RT thread ota/bootloader driver function
Go zero micro Service Practice Series (VIII. How to handle tens of thousands of order requests per second)
Criu enables hot migration
LVGL8.2 Simple Checkboxes
滴滴开源敏捷测试用例管理平台!
Deep dive kotlin synergy (18): hot and cold data flow
Ant financial's written test question: what can be quantified in the requirements document? [Hangzhou multi tester] [Hangzhou multi tester \wang Sir]
Memory escape analysis
Turn to cartoon learning notes
Mysql database foundation: TCL transaction control language
Gd32 RT thread flash driver function
05_ Node JS file management module FS
Viewing technological changes through Huawei Corps (V): smart Park
DQN笔记
ArcGIS Pro scripting tool (6) -- repairing CAD layer data sources
List introduction
Skill combing [email protected] voice module +stm32+nfc
The precision problem of depth texture in unity shader - stepping pit - BRP pipeline (there is no solution, it is recommended to replace URP)
SGD有多种改进的形式,为什么大多数论文中仍然用SGD?
时间复杂度与空间复杂度