screen

How to get a screen image into a memory buffer?

大城市里の小女人 提交于 2019-12-11 20:11:13
问题 I've been searching for a pure WIN32 way of getting the image data of a screen into a buffer, for analysis of the objects in the image later... Sadly I haven't found any. I'm now open to suggestions of libraries / classes that could do the "printing of a screen", but I should still have access to it's memory buffer. Any help appreciated. EDIT: I forgot to mention that I will be capturing the screen continuously, so the operation speed is very important. Maybe someone knows a good library for

Windows 8 App Screen Layout

夙愿已清 提交于 2019-12-11 19:40:02
问题 How can I design an app that adjusts to different screen sizes? So far I stretched the grid because on my computer that fills the screen. Will other computers see this differently? Should I use a scrollbar, if so how? I also tried <viewbox stretch="fill" stretchdirection="both"> <grid width="1024" height="575" Using this everything in the app looks stretched and zoomed in. 回答1: You don't necessarily have to hard code the pixel values as Windows 8 supports various types of layout for making a

How to make buttons that go to a different screen?

徘徊边缘 提交于 2019-12-11 19:18:24
问题 Hey I'm having a lot of trouble with this idea I have. How do I make buttons that go to a different screen but on the CODE? Basically depending on a value that may or may not be different for every user (Let's say the value is in x already) it will make a list of buttons... When you click the list of buttons, they each individually go to a different screen. How do I do this? I know how to on storyboard.. but code wise? Edit: I SHOULD note that for the buttons specifically I have this and it

Background gets smaller and divs get under each other while changing screen size

喜夏-厌秋 提交于 2019-12-11 19:16:59
问题 AS you can see from the title I have two questions. First question is very simple, I have this css code for the background: body{ display:block; background:url(file:///C:/Users/Abdallah/Desktop/Background%20images/Fotor0512155059.jpg); background-repeat:no-repeat; background-attachment:fixed; background-position-y:27px; margin:0; } All I want is that when I get the screen smaller(CTRL -) the background stays on full screen and does NOT get smaller so there will be white space. Second question

Android KitKat start screenrecord from App

旧时模样 提交于 2019-12-11 19:16:29
问题 I'm trying to start screenrecord from application, and have some problems. I've read a lot about executing command but nothing seems to help. Problem is, When I start screenrecord file, It creates with size 3014 bytes (content: [...]ftypisom[...]isom3gp4[...]) , and nothing is recorded in the file. How can I fix it? 回答1: The screenrecord command is intended to be run from an adb shell. Specifically, it needs to be a member of the AID_GRAPHICS group to function. Normal Android apps do not have

LinearLayout horizontal exceeds small screen

自作多情 提交于 2019-12-11 19:01:45
问题 I have two DatePickers, side by side. It works good on larger screen, but when I run my application on smaller devices, I only see the first one, the other is truncated. I'd like the second DatePicker being drown at the bottom of the first one when there's no enough space on the screen. Is it possible avoiding programmatically ways and do it in the XML file? This is the fragment of my code. It's nested in another LinearLayout. <LinearLayout android:layout_width="fill_parent" android:layout

How can I create Android images with good resolution?

眉间皱痕 提交于 2019-12-11 17:59:32
问题 I'm creating an Android application. The main activity layout will have a background image that will wrap with the whole screen. What resolution should I use to create the background image? What about DPI? I need it to be compatible with all devices (for example the HTC Sensation screen's resolution is 540 × 960 pixels). 回答1: The best way for you is to start reading this article, it contains the best practices for supporting multiple screen sizes and densities. EDIT: I use the following

How to dismiss lock screen?

血红的双手。 提交于 2019-12-11 17:39:44
问题 in my case, I just start other activity to remove lock screen. However, I saw any app to dismiss lock screen and that is really smooth. I think the way is different with me.. plz~ tell me how to dismiss lock screen~ and how do i use keyguard to do that? in advance, thank you!! 回答1: If you're talking about the keyguard, then you want to take a look at the KeyguardManager class. You can get an instance of it like this: KeyguardManager km = (KeyguardManager) context.getSystemService(Context

Android screen orientation: forcing landscape?

无人久伴 提交于 2019-12-11 14:53:50
问题 When I switch to a certain activity, I want that activity to show up in landscape mode. In my XML for that actvitiy: android:screenOrientation="landscape" most tutorials stated this is all that's needed, yet when that activity is switched to it doesn't automatically change orientation. fixed: the code needed to be in the manifest under the specific activity 回答1: In your activity tag, instead of just: android:screenOrientation="landscape" I would set: android:screenOrientation="landscape"

Androidmanifest.xml My Android App doesn't really fill the screen

a 夏天 提交于 2019-12-11 14:53:05
问题 I am trying to make my app fill the screen for normal displays, but this is the result when I boot it up on my Samsung Captivate i897: http://oi39.tinypic.com/2qamhqd.jpg The screen's width is filled correctly, but not the vertical side. When I set android:anyDensity to "true" in androidmanifest.xml, the app's screen is fully shown, but only on the bottom-left corner of my screen: http://oi44.tinypic.com/29w7n9v.jpg Can someone tell me how to make the app fit to screen? Also, when an