screen

Take screenshot of screen behind form?

ⅰ亾dé卋堺 提交于 2019-12-13 01:15:47
问题 I am trying to take a screenshot with a form of a screen BUT I don't want my form to be included in the screenshot. This is my current Code for getting the screenshot. Bitmap bt; Graphics screenshot; private void button1_Click_1(object sender, EventArgs e) { this.Opacity = 0; bt = new Bitmap(Screen.FromControl(this).Bounds.Width, Screen.FromControl(this).Bounds.Height, PixelFormat.Format32bppArgb); screenshot = Graphics.FromImage(bt); screenshot.CopyFromScreen(Screen.FromControl(this).Bounds

Android Multiple Screen Support not working

南笙酒味 提交于 2019-12-13 00:35:23
问题 I created my application in only one layout. but now I need to support high resolution screens. I have a ListView getting images from JSON . android:layout_width="fill_parent" android:layout_height="174dp" Images are shown good size on 4 inch device, but on tablet images are cropped from top and bottom. so i added <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ellidokuz.com" android:versionCode="1" android:versionName=

About monitor physical size, screen resolution, dpi

孤人 提交于 2019-12-13 00:29:22
问题 I have a dell laptop latitude 5420. The built-in monitor has a width of 12.20 inches and a height of 6.69 6,86 inches. OS is Windows7. The screen resolution is set to 1600 by 900 (prefered resolution). Additionally Windows7 is configured with a "Set custom text size (DPI)" of 100% (9 point Segoe UI at 96 pixels per inch). I think this means windows7 thinks 1 inch of my monitor uses 96 pixels. If I divide 1600 pixels by 12.20 inches (or 900 by 6,86) it results around 131,1. What should be the

Do any Android devices have square screens?

旧街凉风 提交于 2019-12-12 17:15:14
问题 I'm writing a game for Android and am laying out the playing screen myself, handling both vertical and horizontal orientations, and haven't done anything if the width and height are the same. Does anybody know of at least one Android device that has a perfectly square screen resolution? 回答1: I believe the WIMM ONE is the only square screen Android device out there. It has capacitive touch display at 160x160. 回答2: The MotoACTV is 220x176 (not square but close), the WIMM One is 160x160 (square)

Qt Android. Get device screen resolution

孤街醉人 提交于 2019-12-12 16:24:16
问题 I'm developing in qt 5.3 on android device. I can't get the screen resolution. With the old qt 5 version this code worked: QScreen *screen = QApplication::screens().at(0); largh=screen->availableGeometry().width(); alt =screen->availableGeometry().height(); However now it doesn't work (returns a screen size 00x00). Is there another way to do it? thanks 回答1: Size holds the pixel resolution screen->size().width() screen->size().height(); Whereas, availableSize holds the size excluding window

Android layout folders for different screen sizes

不想你离开。 提交于 2019-12-12 13:13:12
问题 I have an app that I need to ensure different devices are pulling from different layout folders. I need a nexus 5 (1920 x 1080) to pull from a different folder than a Note 4 (2560 x 1440). Currently, no matter what combination of folder names, they both pull from the same folder. I have tried: layout-xxhdpi & layout-xxxhdpi (they both pull from xxhdpi) layout-sw320dp & layout-xxhdpi (they both pull from layout-sw320dp layout-large & layout-xlarge (they both pull from layout-large) What would

javafx full screen on SECOND screen

喜欢而已 提交于 2019-12-12 12:26:31
问题 For the life of me, I can't seem to get help on this. I have a JavaFX screen and I am trying to get to show fullscreen on my 2nd monitor. I tried the following based on other recommendations but to no avail. I know the coordinates are right but it KEEPS going full screen on my MAIN monitor. Please help. if (mainSet.getBoolean("fullScr", false)) { int count = mainSet.getInt("MonSel", 0); if (count > 0) { int i = 0; for (Screen screen: Screen.getScreens()) { if (count == i) { Rectangle2D bounds

Received memory warning when capturing screen and save to video ios

对着背影说爱祢 提交于 2019-12-12 09:46:20
问题 I am now writing a program to capture screen and convert to video. I can successfully save the video if it is less than 10 seconds. But, if more than that, I received memory warning and application crash. I wrote this code as follow. Where am I missing to release data ? I would like to know how to do. -(void)captureAndSaveImage { if(!stopCapturing){ if (assetWriterInput.readyForMoreMediaData) { keepTrackOfBackGroundMood++; NSLog(@"keepTrackOfBackGroundMood is %d",keepTrackOfBackGroundMood);

In android, how can i turn off the screen programatically?

折月煮酒 提交于 2019-12-12 08:39:06
问题 I am trying to turn off my screen programatically. The following methods i have tried: WindowManager.LayoutParams params = getWindow().getAttributes(); params.screenBrightness = 0; getWindow().setAttributes(params); The previous mentioned method does not work. This however, works: DevicePolicyManager mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); mDPM.lockNow(); This works, but i am turning my screen off while the phone is ringing, and this causes the ringer to

Funky android activity behavior when screen turns off?

人走茶凉 提交于 2019-12-12 08:02:13
问题 I'm seeing some interesting activity flow when android turns off the screen and locks the screen... my app goes through the regular flow, onCreate, onStart and onResume. Then, I let my phone sit there. When the screen goes black, onPause is called. That's fine. Then 5 seconds later, the app is killed (onStop, onDestroy). That's fine too. But immediately after onDestroy is called, onCreate, onStart and onResume are called, restarting the app even though the screen is blank. The app has a load