resolution

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

Resolution support in Android 2.0

孤人 提交于 2019-12-12 15:49:58
问题 Received an email from my first Motorola Droid user. The new 480x854 resolution introduced in Android 2.0 (as opposed to 320x480) is wreaking havoc with my user interfaces. Everything is smaller and ill-positioned. I was under the impression that if we follow the XML layout guides we were resolution-safe, as no absolute coordinates are used. Does anyone have experience in making the UI resolution-safe? Will we need a main.xml for each resolution times each orientation? 回答1: Which dimension

GetSystemMetrics and TScreen returns wrong value

耗尽温柔 提交于 2019-12-12 15:23:54
问题 I am using Delphi XE5. I think i have a problem with my laptop. After a while, it returns wrong value to Screen.Width and GetSystemMetrics(SM_CXSCREEN) (same for Height). My OS is Windows 7 64-bit. My laptop's screen res is 1920x1080 (1080p) however my app says it is 1280x720 (720p). I don't think there is a DPI problem as the problem goes when i reboot and starts after a while. Also Compatibality settings are off. Did anyone have this problem before? Or do you know a solution? I have also

How to adapt website to user's Screen Resolution?

99封情书 提交于 2019-12-12 15:15:16
问题 I'm designing my website by using a base of 1024x768 screen resolution. When you're looking at the website in the browser from a computer with a smaller/bigger screen resolution the website starts to deform. How can I adapt the website to user's screen resolution no matter what screen resolution the user have? I believe it's possible trough JavaScript or CSS, but not sure how... 回答1: The best way to tackle this issue is instead of using px use em or % ( percentage ). .container { width: 1000

Google contacts api (gdata) syncs low resolution photos

久未见 提交于 2019-12-12 14:45:20
问题 I'm using google contacts api (gdata) to set a contact's photo in google contacts. I'm using fiddler and I see that the request is sent according to Google Contacts Examples but the photo downloaded back from google is always 96x96. The code I'm using to update and download the photo is: public void UpdateUserPhoto(Contact contact, Stream photo) { _contactsRequest.SetPhoto(contact, photo); } public static void DownloadPhoto(ContactsRequest cr, Contact contact) { if (contact.PhotoEtag == null)

How do I perform a convolution in python with a variable-width Gaussian?

萝らか妹 提交于 2019-12-12 08:34:10
问题 I need to perform a convolution using a Gaussian, however the width of the Gaussian needs to change. I'm not doing traditional signal processing but instead I need to take my perfect Probability Density Function (PDF) and ``smear" it, based on the resolution of my equipment. For instance, suppose my PDF starts out as a spike/delta-function. I'll model this as a very narrow Gaussian. After being run through my equipment, it will be smeared out according to some Gaussian resolution. I can

Using MATLAB to save a montage of many images as one large image file at full resolution

末鹿安然 提交于 2019-12-12 04:24:35
问题 I am trying to save a montage of many (~500, 2MB each) images using MATLAB function imwrite, however I keep getting this error: Error using imwrite>validateSizes (line 632) Images must contain fewer than 2^32 - 1 bytes of data. Error in imwrite (line 463) validateSizes(data); here is the code I am working with: close all clear all clc tic file = 'ImageRegistrations.txt'; info = importdata(file); ImageNames = info.textdata(:,1); xoffset = info.data(:,1); yoffset = info.data(:,2); for i = 1

Unity - Can not change resolution

做~自己de王妃 提交于 2019-12-12 04:12:53
问题 I am having a problem with my resolution settings for a game I am making for Android. Which ever resolution I place to be rendered it always in resolution 399x639(for portrait) I tried changing in player settings, placing a custom resolution and changing it in code but does not help :( Does anyone have an idea what can be wrong? Thanx 回答1: To begin with, you can change the resolution as you said in Edit > Project Settings > Player. I think that you also know how to change it while you're

How can I convert color stream (1920x1080) into depth stream(512x424) in Kinect V2 using matlab or C#

蓝咒 提交于 2019-12-12 03:27:53
问题 Kinect V2 color stream supported format is : 1920x1080. But kinect V2 depth stream format is : 512x424. Now when I start live steam for both sensors then they have different sizes because of different resolution. I cant resize them, because I need coordinates . so when I resize using Imresize(),the coordinates are not matched. I already read matlab documentation.They said hardware only supports this two format respectively.Now How can i do this in code so that both stream have the same

Can we have different resolutions for Preview and Capture of the same DirectShow graph?

北城以北 提交于 2019-12-12 03:12:56
问题 I have 2 streams, one for Preview and one for capture in my DirectShow application. Right now, we observe that the Preview is slow for 1080P video and 1280*720 video. I would like to know if we have any method to have different resolutions for the capture and preview streams. If we have any, I can use the high resolution at capture side alone and at Preview, I am OK to display low resolutions. Thanks 回答1: You can connect the capture output to a Infinite Tee filter. Use one output of the tee