screen-resolution

Windows screen bounds with dual monitors

两盒软妹~` 提交于 2019-12-12 02:56:40
问题 I am looking to get the total screen resolution using dual monitors in powershell. $screen = [System.Windows.Forms.Screen]::PrimaryScreen $SCREENWIDTH = [int]$screen.bounds.Size.Width $SCREENHEIGHT = [int]$screen.bounds.Size.Height With this I get 1920 X 1200 but the resolution is actually 3840 X 1200. I could just double the resolution, however that wont always work depending on the monitors being used. I am doing this within powershell studio. The reason for knowing this is because

how to display admob smartbanner exactly on the bottom of the screen while using andEngine CropResolutionPolicy

一笑奈何 提交于 2019-12-12 02:21:57
问题 So heres the deal. I am making a game in andEngine and I use CropResoltionpolicy (how it works: http://android.kul.is/2013/10/andengine-tutorial-dealing-with-screen-sizes.html). I have engine camera set as 480x800 in horizontal orientation. but the devices resolution is 1920x1080. In my game top and bottom parts of the screen are overflowing devices screen (see the previous link, how red rectangles are overflowing on left and right of the screen). So when I add banner that starts directly on

Android Camera getSupportedPreviewSizes() error

别等时光非礼了梦想. 提交于 2019-12-11 20:42:52
问题 I am testing my Android app on a Samsung Galaxy Tab. When I open up the camera application on the tablet, I see that the possible resolutions you can set for the camera are: 2560 x 1920 2560 x 1440 2048 x 1536 2048 x 1152 1600 x 1200 1536 x 864 640 x 480 However, when I open up a camera instance in my Android app and fetch the supported preview sizes, I get the following resolutions: 1024 x 768 1280 x 720 1024 x 576 768 x 512 640 480 352 x 288 320 x 240 Why is there such a discrepancy in the

How to auto scale an image for all resolutions?

坚强是说给别人听的谎言 提交于 2019-12-11 19:23:16
问题 There are two images in a page of my app, one is a fixed frame and the other will change time to time. I want the page to be auto scaled for all resolutions (WVGA,WXGA, 720p). So according to the documentation I should not set numbers but use "Auto" or "*" to be auto scaled for all resolutions. Ok this is good for frame, but what about the inner picture? how can I set it to be in a distance of the edges to be exactly inside the frame? <Image Name="Frame" Source="/MyApplication;component

Testing different screen resolutions in Universal (iPad,iPhone,iPod) app development

泄露秘密 提交于 2019-12-11 14:36:52
问题 I notice when submitting a Universal app to the app store, there are various screen resolutions to support. I think iPhone/iPod: 320x460, 320x480, 640x960 and iPad 768x1024. When I specify Universal app development in Xcode, the simulator has a resolution of 320x480. To view 768x1024 screen resolution, I can change the target setting to iPad, but how to test 320x460 and 640x960 resolutions? My default solution is to target iPad, and manually hack my code, e.g.: SCREEN_WIDTH=640, SCREEN_HEIGHT

Supporting Multiple Screens for some devices in Android

别说谁变了你拦得住时间么 提交于 2019-12-11 13:51:33
问题 I read the official document about supporting multiple screens http://developer.android.com/guide/practices/screens_support.html According to that document, I should just create different directories for different resolultion. Now the question. How to support devices with normal screen and high density or low density? I ask it because, there are two posibilities (WVGA800 (480x800) and WVGA854 (480x854)) and (WQVGA400 (240x400) and WQVGA432 (240x432)) and I don't know where to store some

How to obtain the maximum screen resolution that a monitor supports using C#

牧云@^-^@ 提交于 2019-12-11 12:12:13
问题 I need to obtain the Maximum supported screen resolution of a monitor, not the current resolution which is easy. Any help would be appreciated. Edit: This is the updated solution that worked for me. public Size GetMaximumScreenSizePrimary() { var scope = new System.Management.ManagementScope(); var q = new System.Management.ObjectQuery("SELECT * FROM CIM_VideoControllerResolution"); using (var searcher = new System.Management.ManagementObjectSearcher(scope, q)) { var results = searcher.Get();

How to get the screen resolution without Windows Forms reference?

六月ゝ 毕业季﹏ 提交于 2019-12-11 11:45:57
问题 I need to get the resolution of the desktop my test runs on. Previously I was grabbing the resolution like this: Screen screen = Screen.PrimaryScreen; int screenWidth = screen.Bounds.Width; int screenHeight = screen.Bounds.Height; Unfortunately, using System.Windows.Forms isn't possible anymore. My project is .NET Core, so preferably I need a NuGet package for this. If anyone's got any suggestions I'd appreciate it. 回答1: If you don't want to use System.Windows.Forms (or cannot), you can get

Drawable folder different screen resolution issues

[亡魂溺海] 提交于 2019-12-11 08:58:03
问题 I am having the following specification images, xlarge screens are at least 960dp x 720dp large screens are at least 640dp x 480dp normal screens are at least 470dp x 320dp small screens are at least 426dp x 320dp Both in portrait and landscape. These are stretched in Tablet. But working fine in mobile. I am handling the configuration changes using the onConfigurationChanged() override method. Is any other way for giving the images for Android application. I reffered the following link for

Tablet - Get Drawable Screen Resolution, Not Total Screen Resolution

本小妞迷上赌 提交于 2019-12-11 05:23:21
问题 With tablets and some phones running 4.0 there are on screen controls. I am developing a full screen canvas-based game. I adjust my canvas to fit the screen size with a matrix. On any device that has on screen buttons my app currently draws part of the games' controls under those buttons. Is there a way to determine the drawable screen resolution, IE the resolution minus any onscreen buttons? EDIT: This is the way I'm testing for resolution Display display = ((Activity) gameContext)