The article is reproduced prohibited for commercial purposes, and cannot be accompanied by virtual currency, points, registration and other additional conditions. Reprint shall be marked by the provenance Mulgore grassland and author @jiongbull.Android screen adaptation scheme
Statistical analysis 1. 2014q1 Active Android Device statsParameter table:
Model
resolution
pixel density
Screen Width
Samsung Galaxy Note2
720 *
xhdpi
Article transferred from: http://blog.csdn.net/zpf03/article/details/5903484
During this time, I developed an image recognition project based on wince6.0 + 6410, using the Development Board of youjian hengtian. This development board has an ov9650 camera connection port, but one of the biggest problems is that the image obtained by the camera is too small and only 320*240 images can be seen. I need 1280*1024 images, therefore, it can only be modified. If you want the driver to provide an interf
Php uses regular expressions to process values that are not required in strings. Today, when collecting images from the Momo website, the resolution of the images will be changed to 320*480, and the original images contain pixel information. For example, the clear Hut (320 today, when collecting images on Mo's Web site, because I will eventually change the image resolution to 320*480, the original image con
based on screen resolution only. That is, the device is based on the screen resolution. This is also the source of the commonly seen VGA class name:Differentiate different devices according to different screen resolutions, such as some common names:
QVGA: 240*320 Quarter VGA One-fourth meaning (for a quarter) HVGA: 320*480 Half size VGA meaning one-second (1 = a) VGA: 480*640 T
Php makes good use of regular expressions to process the Value nbsp, in the end, I will change the image resolution to 320*480, and the original image contains pixel information. Nbsp; e. g.: clear cabin (320*480) Wallpaper nbsp; in the end, php makes good use of regular expressions to process the values required in strings.
Today, when collecting images from the Momo website, the resolution of the imag
Apache logs by Time-phased recordingFound in Apache configuration file httpd.confErrorlog Logs/error_log and Customlog Logs/access_log commonLinux System Configuration Method:Change it toErrorlog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_error_log 86400 480″Customlog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_access_log 86400 480″commonConfiguration method under Windows syst
Apache logs by Time-phased recordingFound in Apache configuration file httpd.confErrorlog Logs/error_log and Customlog Logs/access_log commonLinux System Configuration Method:Change it toErrorlog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_error_log 86400 480″Customlog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_access_log 86400 480″commonConfiguration method under Windows syst
medium;For the first case, is by the system through the current device density to select read for the density directory of the picture resources, the resource matching is to be retrieved by the corresponding density directory, if the corresponding directory is not more than the current density small directory search, only to find the image so far.
Property name
ldpi
mdpi
hdpi
xhdpi
xxhdpi
xxxhdpi
Table of contents corresponds to DPI
ratio is less than 0.1, and (2) in the dimensions obtained (1), the highest difference of the Surfaceview is selected. These two standards have been implemented through code, with the official code attached here:
public camera.size getoptimalpreviewsize (list
When loading the preview screen, you need to consider the dimensions (getsupportedpreviewsizes) supported by camera and the Surfaceview dimensions (layout_width/layout_height) that load the preview, and in the preview phase, The re
, NULL, 0, 0))
{
switch (msg.message)
{case
My_msg_decode:
Sws_scale (m_ Pswscontext,outframe.data,outframe.linesize, 0,outframe.height,dst->data,dst->linesize);//Convert picture size
memcpy (Littleframe.data,dst->data[0], 640*480); The following is the storage of ffmpeg YUV data into the OpenCV mat type. OPENCV Storage of YUV data
memcpy (littleframe.data+640*480,dst->data[1
Android divides the screen size into four types: small, normal, large, xlarge;The screen density is divided into: low (LDPI), Medium (MDPI), High (hdpi), Extra High (xhdpi), and the relationship between each screen density is as follows:
Density name
reference value for density (DPI)
Relationship
the corresponding screen resolution
xxxhdpi
640dpi
xxhdpi
480dpi
xhdpi
320dpi
Today, when collecting images from the Momo website, the resolution of the images will be changed to 320*480, and the original images contain pixel information.
For example, clear cottage (320*480) Wallpaper
So what should I do if I want to leave the "Clear cottage Wallpaper?
First, we should immediately think that we should first find the string and remove it.
Well, first of all, I thought so too. I define
resources in assets or no-dpi can also avoid high peak memory caused by scaling. If your program often loads an image, but if you want to continue using it, you can also directly use: try {// load big memory data} catch (java. lang. outOfMemoryError e) {// TODO alternative solution} test: 1 place image A in no-dpi, the memory is loaded only once, and no scaling is performed. 2 only in drawable-hdpi: put A-PNG Image, 2.1 when the test machine is avd2.3.3-320-
In "QT Quick Introduction" We mentioned that QML syntax is similar to JSON, please refer to "qt on android:http Download and JSON parsing" to see the JSON syntax. Of course, we expect to learn QML from scratch, so you can also look straight down.Copyright Foruok, reproduced Please specify the source:Http://blog.csdn.net/foruokObjectThe suffix of the QML file is QML, which is actually a text file. The following is a simple QML file:Import QtQuick 2.0import qtquick.controls 1.1import qtquick.dialo
courseware has pointed out: sending a username that exceeds 480 bytes to the server can trigger the vulnerability (that is, using the command USER longString \ r \ n). After overflow, the content in ESP contains part of longString. Verification and analysis are required.2.2 analyze the stack structure of war-ftp v1.65, that is, the exact location of EIP, ESP, and ebp in the analysis stack.2.3 construct exploit for war-ftp v1.65 Based on the above ana
system configuration method:Change itErrorLog "|/usr/local/apache/bin/rotatelogs/home/logs/www/% Y _ % m _ % d_error_log 86400 480 Prime;CustomLog "|/usr/local/apache/bin/rotatelogs/home/logs/www/% Y _ % m _ % d_access_log 86400 480 Prime; commonConfiguration method in Windows:# ErrorLog "| bin/rotatelogs.exe logs/vicp_net_error-% y % m % d. log 86400
Php makes good use of regular expressions to process the Value nbsp, in the end, I will change the image resolution to 320*480, and the original image contains pixel information. Nbsp; for example, clear cabin (320 php uses regular expressions to process the values required in strings
Today, when collecting images from the Momo website, the resolution of the images will be changed to 320*480, and the ori
Px: The pixel of the screen.In: inchesMM: mmPT: LB, 1/72 inchDP: an abstract unit based on density. If a screen of DPI is displayed, 1dp = 1px.Dip: equivalent to DPSP: similar to DP, but it also scales according to the user's font size preference.We recommend that you use SP as the unit of text, and dip for others.
The following is an overview of the relationship between DIP and PX:
The following figure shows the resolution information density, which is the screen density.
Name
Reso
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.