, there is no difference in principle. It depends on how you think.
The Mac machine is unclear. In Windows, the default display settings define the text as 96 DPI (PPI, Microsoft combines DPI and PPI, we don't need to be honest ). This definition indicates 1px = 1/ 96 inch. The concept of contacting PT, 1pt = 1/72 inch, can be concluded that in such a setting, 1px = 0.75pt, the common 99pt = 12px. On the
Retina Retina screen, the 2px x 2px device pixel represents the 1px x 1px css pixel, so the number of devices is 640 x 1136PX, and the number of CSS logic pixels is x 568px.How is the conversion between the device pixel and the CSS pixel generated?This needs to be talked about per inch pixels (pixel per inch) and device pixel ratio (devices pixel ratio).Pixel per inch (pixel per inch):PPI, which represents the number of pixels per inch (pixel), the h
value of a bit larger, the first value is generally refers to the width of the second value is a height.On the contrary, the mobile phone is generally less than the height of the width, so the first value is the width.The current popular device resolution address
Add several conceptsFull HD (All HD):1080 resolution, iphone7p is this.4K screen: Also known as QHD or UHD (Ultra HD), the minimum resolution is 38402160, TV with manyPixel of device camera:640*480 = 307200 = 300,000 pixels160
.% ============================================================% @SourceCode author:pluskid (http ://blog.pluskid.org)% @Appended by:sophia_qing (http://blog.csdn.net/abcjennifer) percent Generate Initial centroids th Reshold = 1e-15; [N, D] = size (X); If Isscalar (k_or_centroids)%if k_or_centRoid is a 1*1 number K = K_or_centroids; Rn_index = Randperm (N); %random index N Samples centroids = X (Rn_index (1:k),:);%generate K random centroid Else% k_or_centroid is a I Nitial k cen
physical size: Refers to the size of the diagonal screen, usually in inches (inch) to indicate. Resolution: Refers to the number of pixel points that are contained within the unit length. For example, on a screen with a resolution of 1024x768, where each horizontal line contains 1024 pixels, there are 768 lines, that is, the number of scanned columns is 1024 columns, and the number of rows is 768 rows. The units that describe the resolution are dpi (dots per inch), LPI (lines per inch), and
Android adaption _ related concepts and applicationsThere are several concepts and related formulas: 1. dp: device independent pixels (device independent pixels ), is the ratio of pixels to density dp = px/density 2, dpi (dot per inch points per inch) is equal to the ppi, is the ratio of the number of screens on the diagonal line and the size of the screen dpi = ppi = (√ (screenHeight ^ 2 + screenWidth ^ 2)
phone screen, see on other screens, and so on, now say the actual size of the picture and the size of the screen we see the relationship.Xxdpi=yxppi (yxppi= number of pixels pixel)Points dot= pixels pixelWe take computers for exampleX mentioned above, is the actual size of the picture (can change), and y? Y is the size of the picture you see on the screen, which means that the white point takes a ruler to measure how high the picture on your computer screen is 100%. Take the usual 14-inch 16:10
PPI: pixel density, pixels per inch (1inch=2.54cm), which is the number of pixels per screen. Pixel density =√{(length pixels ^2+ width pixels ^2)}/screen size.Dpi:dots per inch, point in dots, refers to the printing accuracy in the printing industry. In the official Android development Guide, the meaning of the PPI is the same as that of pixels per inch.Resolution: Refers to the number of pixels in the hor
A basic concept1. DPI (dots per inch) of how many dots each, and PPI (Pixel per inch), pixel pixels. For the design of the display, Dpi=ppi.2. Dip (device independent pixels) devices independent pixels, different devices have different display effect, this is related to the device hardware, do not rely on pixels.3. DP (density-independent pixel), an abstract unit based on screen density. 1DP = 1px on a moni
the screen, which can be understood as a picture pixel to hold. There is a value that can measure the relationship between the two--ppi, Baidu it means the number of pixels per inch, that is, the number of pixels that can be accommodated without inches in length. The length corresponds to the physical length, and the pixels correspond to the picture pixels displayed. In fact, the physical resolution here is the number of coordinates we used in the de
. % ===================================================== ====================================%@ sourcecode Author: pluskid (http://blog.pluskid.org) % @ appended by: sophia_qi Ng (http://blog.csdn.net/abcjennifer) % generate initial centroids Threshold = 1e-15; [N, d] = size (x); If isscalar (k_or_centroids) % if k_or_centroid is a 1*1 number k = k_or_centroids; rn_index = randperm (n); % Random Index n samples centroids = x (rn_index (1: K ),:); % generate K random centroid else % k_or_centroi
vector. % ===================================================== ====================================%@ sourcecode Author: pluskid (http://blog.pluskid.org) % @ appended by: sophia_qi Ng (http://blog.csdn.net/abcjennifer) % generate initial centroids Threshold = 1e-15; [N, d] = size (x); If isscalar (k_or_centroids) % if k_or_centroid is a 1*1 number k = k_or_centroids; rn_index = randperm (n); % Random Index n samples centroids = x (rn_index (1: K ),:); % generate K random centroid else % k_or_
Transferred from: Model-engineering implementation and expansion (Design Mode C)
Http://www.cnblogs.com/callwangxiang/
Self-Test
1,Calculation of inflation rate is generally applicable3This includes the use of the Consumer Price Index (CPI), Producer Price Index (PPI),GDPThe contraction index is calculated using the following formula:
π _ T = (cpi_t-CPI _ (t-1)/cpi _ (t-1)
π _ T = (ppi_t-PPI
Generally, pointers are the addresses in the memory. Different types of pointers represent the addresses of corresponding types of variables. The pointer itself also needs an address, so we can clearly define the pointer. The following is
Pointer and a pointer pointing to an integer pointer:
Int I = 1;
The values of each variable are output as follows:
I = 1 * Pi = 1 ** PPI = 1
* PPI = 0012ff60
B
: 1) Adjust the font size in the browser; 2) Adjust the display attributes just mentioned.
So is PX or PT used in page design?
In my opinion, there is no difference in principle. It depends on how you think.
The Mac machine is unclear. In Windows, the default display settings define the text as 96 DPI (PPI, Microsoft combines DPI with PPI, so we do not need to compareTrue ). This definition indicates 1px =
physical area, compared to a "normal" or "high" density screen.
Public floatdensityThe logical density of the display.
Public intdensityDpiThe screen density expressed as dots-per-inch.
But in fact, I understand it as a scaling factor. The specific reason is explained later. By screen density, all mobile phones can be divided into the following categories:Ldpi(Low, low density ),Mdpi(Medium, standard density ),Hdpi(High, high density), andXhdpi(Extra high, super high density ).
DPI (dot
Android Screen Adaptation Program summary 日常开发中,难免遇到屏幕适配的方案,网上也有很多方案,在这里本人只是做一个总结,以免日后使用Concept of the Unit
PT (Point): lbs, a standard fixed-length unit with a size of 1/72 inches, mainly for printing and graphic design. 1 inch = 2.54 cm = 72 lb 1pt=0.03527cm
PX (pixel): pixels, the smallest point that makes up the screen image, a relative size unit. The smaller the pixels in the same-size screen, the higher the screen resolution, and the higher the contrast.1pt= (
PX:css pixels logical pixels, abstract units used by the browserDP (Android), PT (IOS):device independent pixels devices-independent pixels, logical pixelsDPR:devicepixelratio device pixel scaling ratioDPi: Ink dots that can be sprayed on the printer per inch (printing industry)PPI: The number of pixels per inch of the screen, which is the pixel density in units of inchesAt present, in the computer display device parameter description, the meaning of
Turn to the user's answer:1. DPI is the dot per inch, how many dots, PPI is Pixel per inch, pixels per inch, for the design of the display, Dpi=ppi.The PPI calculation method is the sum of the length and width of each square, divided by the diagonal length (in inches). Principle can draw a rectangle of the Pythagorean theorem to calculate a calculation.2. PPI ind
to the trigger mode of peripheral);Virtualization extensions;ARM CPU External connection only 2 interrupts, one is IRQ , one is FIQ , the corresponding processing mode is the general interrupt ( IRQ ) processing mode and fast interrupt ( FIQ ) processing mode. So the GIC will end up with a 2 -line interrupt and a CPU docking. 2. Detailed design Introduction to the overall impression, the following to introduce the detailed section, before the introduction, first understand GICNBSP;
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.