resolution

Android Emulator Reports 600x1024 MDPI as XLarge?

☆樱花仙子☆ 提交于 2019-12-18 12:29:45
问题 I am currently trying to test an existing application for compatibility with the soon to be released Amazon Kindle Fire tablet. They say to set the emulator at 600x1024 and LCD Density to 169 (https://developer.amazon.com/help/faq.html?ref_=pe_132830_21362890#KindleFire although in email they said 160 instead of 169) and that it should report out as being "large" and not "xlarge" (this I have from a back and forth email exchange with their support team where I'm complaining it does not work).

Screen Resolution On A PhoneGap App

你离开我真会死。 提交于 2019-12-18 12:23:40
问题 I'm writing a Phonegap (3.2) app, I take a HTML5 canvas, make it full screen and the whole app UI is on this canvas. Using a Samsung Galaxy S4 (Android 4.3) to test the app, the screen resolution of the app is only 360X640 and not 1080X1920 like I want it to be. What is needed to be done in-order to make the app use the maximum possible screen resolution ? I've added screen shots 1) // Looks OK but bad resolution windowWidth = window.innerWidth; windowHeight = window.innerHeight; 2) // Takes

Android MediaCodec: Reduce mp4 video size

↘锁芯ラ 提交于 2019-12-18 11:51:38
问题 I am looking for a way to "compress" an mp4 video. To achieve this, I want to reduce the resolution of the video and / or reduce FPS. After long research, I think the way to do it is to use MediaCodec and related APIs as follows : -> MediaExtractor to extract encoded media data from a mp4 file. -> MediaCodec (Decoder): Decode each frame for later processing. -> MediaCodec (Encoder): At this point, I guess that's where we should establish MediaFormat parameters such as video resolution, which

Maven fails to find local artifact

二次信任 提交于 2019-12-18 10:14:36
问题 Occasionally maven complains that a particular dependency, which is built and packaged locally, cannot be found in the local repository while building another project that has it as a dependency. We get an error like: Failed to execute goal on project X: Could not resolve dependencies for project X: Failure to find Y in [archiva repository] was cached in the local repository, resolution will not be reattempted until the update interval of internal has elapsed or updates are forced -> Where X

Drawable folders for high resolution handhelds

老子叫甜甜 提交于 2019-12-18 06:56:24
问题 I can't figure out how to produce drawables for the new "high-res" handhelds like the Galaxy Nexus, One X, Galaxy S3 etc that have a resolution of 1280x720 or higher. I always try to make as few layout-versions as possible. Preferably just one but at times a layout-long and notlong is necessary. And make the xml smart enough to handle all devices. But that's only possible if the drawable resources are there to supply all the different resolutions and sizes. All has been nice and smooth until

App -> Camera -> Photo -> low resolution

青春壹個敷衍的年華 提交于 2019-12-18 04:28:08
问题 Problem: When I use my app to take a photo and store it on SD, the resolution is 160x120. If using camera ordinary, resolution of photos is 1920x2560. So, please help me saying what I have to do to force camera, started from the app, to take a photo in the standard high resolution? This is the code I use for starting camera intent and saving the photo: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Intent cameraIntent = new

Matplotlib - unable to save image in same resolution as original image

我是研究僧i 提交于 2019-12-18 02:50:42
问题 I am unable to save the image without the white borders and at the initial resolution ( 1037x627 ) import numpy as np import matplotlib.pyplot as plt from matplotlib import pyplot, lines import matplotlib.image as mpimg from matplotlib.patches import Ellipse x=[0,0,0,0,0] y=[0,0,0,0,0] a=10**1.3*15 inc=25 b=np.cos(np.radians(inc))*a x[0],y[0]=516.667,313.021 x[1],y[1]=x[0]-a,y[0] x[2],y[2]=x[0]+a,y[0] x[3],y[3]=x[0],y[0]+b x[4],y[4]=x[0],y[0]-b for pa in range(0,10,5): fig, ax = plt.subplots(

Changing DPI scaling size of display make Qt application's font size get rendered bigger

一个人想着一个人 提交于 2019-12-17 23:29:12
问题 I have created some GUI application using Qt. My GUI application contains controls like push button and radio button. When I run the application, buttons and fonts inside button looks normal. When I change the DPI scaling size of display from 100% to 150% or 200%, font size of controls rendered bigger but not control size (pushbutton, radio button) irrespective of resolution. Due to this the text inside controls were cut off. please see the attached image. Qt application look when DPI scaling

og:image Open Graph Warnings image size

自古美人都是妖i 提交于 2019-12-17 22:39:27
问题 I check my url because facebook don't use the image that I set on og:image url fb check My image is: 639x649px 486kb But fb use this picture: 300x443px 97kb The warning said: og:image should be larger: Provided og:image is not big enough. Please use an image that's at least 200x200 and preferably 1500x1500. (Maximum image size is 5MB.) Image 'url from image, size: 300x443px 97kb' will be used instead. But when I try to create an image 1500x1500px, upload to server, refresh, and check again

Set background image according to screen resolution

寵の児 提交于 2019-12-17 22:33:32
问题 I would like to be able to change my webpage background image according to the screen resolution the user uses so: if screen resolution is greater than or equal to 1200*600 then background = mybackground.jpg no-repeat or else. How can I do this? 回答1: Pure CSS approaches that work very well are discussed here. Two techniques are examined in particular and I personally prefer the second as it not CSS3 dependent, which suits my own needs better. If most/all of your traffic has a CSS3 capable