screen area . So, for example, we say that a cell phone is 3.2 feet, that is, the diagonal length of its viewable area is: 3.2*2.54 = 8.128cm.Resolution : It refers to the number of pixels in the vertical and horizontal direction of the screen. For example, the resolution is: 480*320, that is to say: Horizontal direction (width) has 320 pixels. The vertical direction (high) has 480 pixel points.dpi: pixel
# #Android下屏幕适配* * *: The current app shows the same effect on the same phone. Before the adaptation needs to first determine the current cell phone pixel density type (such as: xhdpi, hdpi, MDPI, etc.),The following is an example of Huawei G700, Simulator, to calculate its pixel density.* * Case ONE:Phone Model: G700Cell Phone Resolution: 1280*720 (Note: Mobile phone two right-angled side of the 1280 and 720 pixels respectively placed)Cell phone Size: 5 inches (Phone diagonal length)Suppose tha
============ Problem Description ============Recently do a mobile phone adaptation, suitable for 800*480 mobile phone, but the batch test found several mobile phones are also 800*480, but the interface element dislocation, the screen is really 800*480, but there are virtual keys, accounted for dozens of of pixels. The resolution taken out by the program is 782*
For different Apple devices, see IOS: Model parameters, SDK, Xcode versions for each of the parameters.model ChangesCoordinates: Indicates the physical size of the screen, the coordinates become larger, indicating that the machine screen size has become larger;Pixels: Indicates the size of the screen picture, with a correspondence between coordinates, such as 1:1 or 1:2, etc.;PPI: A scale value representing the physical size of the screen to the size of the picture, and the scale of the coordina
Implementation principle of LCD driver in Embedded System
From: http://www.laogu.com/wz_18338.htm
Source: Today's electronics
Author: Yang xianqiang, Sichuan University, Tian Yuanfu
Details:
This article describes how to implement Modular programming of the LCD driver and how to load the driver into the system kernel statically Based on Samsung's arm9-series embedded processor S3C2410.
This article describes how to develop Embedded LCD drivers on the Linux platform based on the LCD interface
than browsers. However, there are still some solutions that can save you a lot of energy.
Here you can view a complete mobile device encoding list.
1. Currently, most mobile devices support MP4/H.264. Including iOS products such as iPhone, iPod, iPad, and Apple TV), the vast majority of Android devices, and new Blackberry phones. For such devices, select "Baseline" for encoding ". In terms of resolution, for iOS and Android devices, select a resolution not higher than 640 ×
Android manual density (dpi) modification method, androiddensitydpi
In the Android system, the default density is set based on the screen resolution range, which is 320 (xhdpi). You can also manually modify the density.
Modify the ro. sf. LCD _density VALUE IN system. prop;
For example, ro. sf. LCD _density = 480;
We can use the adb command to query this attribute:
Adb shell getprop ro. sf. LCD _density
How to Set DPI in the Android File System
One Pa
Cocos2dx cross-platform engine is really interesting. I recently decided to transfer the game written by oC to cocos2dx.
However, Multi-Resolution on the androd platform is a big problem, which is not called in IOS. 480*320*960*640*1024*768 can be well solved based on pixels.
Fortunately, the setdesignresolutionsize provided on cocos2dx supports multi-resolution, but you will know after using it. If the screen ratio is not
the Two-plane mode, that is, Y and UV are divided into two plane, but UV (cbcr) is a staggered storage, instead of being divided into three plane. The extraction method is similar to the previous one, that is, y '00, y '01, y '10, and y '11 share cr00 and cb00.
3. Format analysis and conversion
Yuv420 planar data, taking the 720x488 Size Image yuv420 planar as an example, the storage format is: the total size is (720x480X3> 1) bytes, divided into three parts: y, U, and Vy: (720x480) bytes
U (C
. Screen density: the number of display points per inch. The screen density is different from the resolution.Android has the following screens:
ScreenTyep
WidthPixels
HeightPixels
DimensionsRange (inches)
Screen Density
QVGA
240
320
2.6-3.0
Low
WQVGA
240
400
3.2-3.5
Low
FWQVGA
240
432
3.5-3.8
Low
HVGA
320
480
3.0-3.5
Medium
WVGA
Cocos2d-x 3.2-2048-Article 1
* *********************************** Please specify the source: bytes ******************************************
2048 this game has been around for a while and has always wanted to be a game.
However, the cocos2d-x engine is learning, and there are other things busy, until now.
Okay, I have to do it now ~.~
This is the first article, which mainly describes:
-- Screen Adaptation
-- Main Interface layout and design
In the preface, I have already shown 2048,
The co
($source)) {case Imagetype_jpeg:imagejpeg ($target _img, $target); Break Case Imagetype_png:imagepng ($target _img, $target); Break Case Imagetype_gif:imagegif ($target _img, $target); Break }//return Boolval (file_exists ($target))//php5.5 the Boolval () function is used to get the returned Boolean value return File_exists ($target)? true:false;// Compatible with low-version PHP notation}
The ================== function uses the way ====================//the original picture
, $resize _h); /* Save the picture to file */if (!file_exists (DirName ($target))) mkdir (DirName ($target), 0777, true); Switch (Exif_imagetype ($source)) {case Imagetype_jpeg:imagejpeg ($target _img, $target); Break Case Imagetype_png:imagepng ($target _img, $target); Break Case Imagetype_gif:imagegif ($target _img, $target); Break }//return Boolval (file_exists ($target))//php5.5 the Boolval () function is used to get the returned Boolean value return File_exists ($targ
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.