当前位置:网站首页>Taishan Office Technology Lecture: from the layout height of the line, talk about the height overflow and height shrinkage of the drawing height (launched in the whole network)
Taishan Office Technology Lecture: from the layout height of the line, talk about the height overflow and height shrinkage of the drawing height (launched in the whole network)
2022-07-05 18:55:00 【Liu Kunpeng】
In the previous post , I propose to remove , Row view except for font height , There is also a layout height . Now we have to put forward the concept of drawing height . What is the drawing height ? for instance , The layout height is 18.1, The height when drawing is generally 18, Maybe not . At this time, you need to draw the height .
How does the drawing height come from ? The drawing height is caused by the fact that pixels are integers . For example, row height 18.1, from 96 Began to draw ,5 After that y The coordinates are 96+90.5. Obviously, it can't be floating-point pixels when drawing , So round it up , Namely 96+91. What about height ? The situation is even more complicated . According to the mantissa , There are actually four situations :
- Draw height , Normal situation .y Decimal is less than 0.5,y+height Decimal is less than 0.5
- Draw height , Normal situation .y The decimal is greater than 0.5,y+height The decimal is greater than 0.5
- Draw height , Height shrinkage .y The decimal is greater than 0.5,y+height Decimal is less than 0.5
At this time, the drawing height shrinks 1 Pixel , from 18 become 17.
- Draw height , Height overflow .y Decimal is less than 0.5,y+height The decimal is greater than 0.5
At this time, the drawing height overflows 1 Pixel , from 18 become 19.
边栏推荐
- China law network joins hands to observe the cloud, and the online system is a full link observable platform
- Insufficient picture data? I made a free image enhancement software
- Rse2020/ cloud detection: accurate cloud detection of high-resolution remote sensing images based on weak supervision and deep learning
- Low code practice of xtransfer, a cross-border payment platform: how to integrate with other medium-sized platforms is the core
- Summary of six points of MySQL optimization
- RPC协议详解
- The monthly list of Tencent cloud developer community videos was released in May 2022
- 深入底层C源码讲透Redis核心设计原理
- 2022 latest Android interview written examination, an Android programmer's interview experience
- A cloud opens a new future of smart transportation
猜你喜欢
随机推荐
Postman核心功能解析 —— 参数化和测试报告
Linear table - abstract data type
c语言简便实现链表增删改查「建议收藏」
[QNX hypervisor 2.2 user manual]6.3.2 configuring VM
How much does the mlperf list weigh when AI is named?
《ClickHouse原理解析与应用实践》读书笔记(5)
【Autosar 十四 启动流程详解】
[detailed explanation of AUTOSAR 14 startup process]
@Extension, @spi annotation principle
AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
LeetCode 6111. Spiral matrix IV
Personal understanding of convolutional neural network
lombok @Builder注解
The 2022 China Xinchuang Ecological Market Research and model selection evaluation report released that Huayun data was selected as the mainstream manufacturer of Xinchuang IT infrastructure!
EasyCVR电子地图中设备播放器loading样式的居中对齐优化
中文版Postman?功能真心强大!
Pytorch yolov5 training custom data
EasyCVR授权到期页面无法登录,该如何解决?
Oracle 中文排序 Oracle 中文字段排序
Problems encountered in the project u-parse component rendering problems








