1. Take photos This can be achieved using Unity’s RenderTexture and Texture2D classes, which require a camera to take pictures, and then save the camera’s rendering results to the Texture by creating a RenderTexture. Finally convert this Texture to a regular 2D texture and save it as an image file. public class PhotoShootHandler : MonoBehaviour […]
Tag: screen
AndroidScreen freeze optimization list smoothness one
The rendering time of lag is as shown below: Caton performance has the following aspects: Network image rendering takes a long time The response of sliding up and down is slow, and the screen may even not move. It takes a lot of time to load and render a new page of data. There is […]
Flutter third-party flutter_screenutil (screen adaptation)
I have always felt that what I write is not about technology, but about feelings. Each tutorial is a trace of my journey along the way. Success based on professional skills is the most replicable. I hope that my path will help you avoid detours. I hope that I can help you wipe away the […]
ueditor rich text copy and paste word content containing pictures, and supports screenshots or copying and pasting pictures separately
Background The company’s recent upgrade project requires rich text to support the copying and pasting of word content containing multiple pictures. There is no other way. For the sake of user experience, we can only find a solution. Through various data searches, we have sorted out an effective solution for personal testing. Plan: 1. Listen […]
Jetpack Compose large screen adaptation exploration
Article directory 1. Convert the original size to the window Size class 2. Measurement constraints 3. Constraint layout 4. Demo Official documentation: https://developer.android.com/jetpack/compose/layouts/adaptive?hl=zh-cn When you use Compose to lay out your entire app, app-level and screen-level composables take up all the space allocated to the app for rendering. At this level of app design, it […]
Orange Pi Zero3 lights up the st7789v screen
SDK:orangepizero3 6.1.31 1. Hardware connection orangepi zero3 ips display GND GND 3.3V 3.3V SPI0_CLK(PH6) SCL SPI0_MOSI (PH7) SDA PC14 RES PC15 DC PC9 BLK 2. Transplantation 1.1 Modify the device tree and add the st7789v node File path: arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero3.dts &spi0 { #address-cells = <1>; #size-cells = <0>; status = “okay”; pinctrl-names = “default”; pinctrl-0 = […]
Pure front-end to record screen and save video locally, so simple
Big factory technology advanced front-end Node advanced Click above for Programmer Growth Guide and follow the official account Reply 1, join the advanced Node communication group Author: Moment Link: https://juejin.cn/post/7280057907055869992 As a senior picture cutter, we will inevitably need to share some functions of the pages we write with others through videos. There is another […]
Python cloning and full screenshot of web page
It is applicable to both linux and windows. If it is useful, please like it~ Install Python3.11 Update: It can also run normally on Python3.6. cd /root wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz tar -xzf Python-3.11.0.tgz yum -y install gcc zlib zlib-devel libffi libffi-devel yum install readline-devel yum install openssl-devel openssl11 openssl11-devel export CFLAGS=$(pkg-config –cflags openssl11) export LDFLAGS=$(pkg-config –libs […]
Android screen adaptation solution–smallestWidth
What is the smallestWidth solution The principle of smallestWidth qualifier adaptation is the same as that of screen resolution qualifier adaptation. Both are created by creating multiple values folders. The system looks for the corresponding dimens.xml file based on the qualifier to determine the size display on different devices. smallestWidth qualifier Character adaptation uses the […]
When the time is set to 12-hour format in Android14 MTK SystemUI, the status bar and lock screen interface display AM/PM
Article directory 1. The status bar displays AM/PM 2. The lock screen displays AM/PM 1. The status bar displays AM/PM First check the layout file of the status bar: \vendor\mediatek\proprietary\packages\apps\SystemUI\res\layout\status_bar.xml Find layouts related to time: <com.android.systemui.statusbar.policy.Clock android:id=”@ + id/clock” android:layout_width=”wrap_content” android:layout_height=”match_parent” android:textAppearance=”@style/TextAppearance.StatusBar.Clock” android:singleLine=”true” android:paddingStart=”@dimen/status_bar_left_clock_starting_padding” android:paddingEnd=”@dimen/status_bar_left_clock_end_padding” android:gravity=”center_vertical|start” /> Then based on this customized java file: \vendor\mediatek\proprietary\packages\apps\SystemUI\src\com\android\systemui\statusbar\policy\Clock.java […]