resolution

Javascript Detect Screen Resolution, change css, crop images accordingly

五迷三道 提交于 2019-12-24 09:45:17
问题 So I know how to change the css depending on the resolution via javascript. How would one go about 'cropping' an image depending on the screen resolution? 回答1: Well you can get the screen details from window.screen - though personally I would recommend just finding out how big the current window is, the only reason not to is if you are going to resize the window and that is very frowned upon. Once you know the sizes and how big you need to make your images, I find that images are cropped

On some devices, Google Mobile Visions CameraSource returns low resolution image after calling takePicture

隐身守侯 提交于 2019-12-24 07:47:14
问题 After I call: cameraSource.takePicture(null, pictureCallback); in the callback: private CameraSource.PictureCallback pictureCallback = new CameraSource.PictureCallback() { @Override public void onPictureTaken(byte[] bytes) { try { Log.d(DEBUG_TAG, "On picture taken."); if (bytes == null) { return; } Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); Glide.with(this).load(bitmap).into(capturedImg); }catch (Exception ex){ ex.printStackTrace(); Log.e("PictureTaken",ex

c# chart.object from excel as .png low resolution

試著忘記壹切 提交于 2019-12-24 07:47:00
问题 I have created an excel file and want to export its contents as a png or jpeg file. Unfortunately the quality of the image is really low. Is there a solution to this? I wish a really high resolution picture. Thank you My current code (from internet): Excel.Range xlRange = xlWorksheet5.get_Range("A1", "K30"); xlRange.CopyPicture(Excel.XlPictureAppearance.xlScreen, Excel.XlCopyPictureFormat.xlPicture); Excel.ChartObject chartObj; chartObj = xlWorksheet5.ChartObjects().Add(xlRange.Left, xlRange

Why do resolutions become smaller after a image file be read by program?

早过忘川 提交于 2019-12-24 06:47:49
问题 I meet a problem: I have images file having different sizes. (hdpi, xhdpi, xxhdpi, xxxhdpi) When I used the image files in the in the hdpi,xhdpi,xxhdpi devices, it's good. But when the device is xxxhdpi, the resolutions of the image files was became smaller. I don't know why it had happened. For example: I have 2 devices, one's resolution is xxhdpi, another one is xxxhdpi. And I have 2 image files, one is put in the folder "drawable-xxhdpi", it's resolution is 1080x1920. Another one is put in

I can't change android camera resolution

南笙酒味 提交于 2019-12-24 06:34:39
问题 This is my code in onPreviewFrame Method. The frame that shows on the surfaceHolder is fine. I Already set the resolution with this code at first mCameraParameter = mCamera.getParameters(); mCameraParameter.setPreviewSize(100,150); mCameraParameter.setPreviewFrameRate(20); mCameraParameter.setPreviewFormat(PixelFormat.JPEG); mCamera.setParameters(mCameraParameter); but the picture that image get is 640 * 480 I wonder why i can't change the preview resolution. public void onPreviewFrame(byte[]

Need images with lower resolution “stretched” to screen size

↘锁芯ラ 提交于 2019-12-24 06:03:04
问题 I am making a video game using C# WPF. What I am trying to implement now, is to add additional resolutions. My default monitor resolution is 1600x900. I am using the same size for game's window and grids. Now, I want to add more resolutions. I already found an easy way to change values in code, the problem is on another topic. That's how the game looks on 1600x900. Then, I am trying to set resolution 800x600. What I want to achieve, is to make images with resolution lower then the one set in

Need images with lower resolution “stretched” to screen size

空扰寡人 提交于 2019-12-24 06:02:05
问题 I am making a video game using C# WPF. What I am trying to implement now, is to add additional resolutions. My default monitor resolution is 1600x900. I am using the same size for game's window and grids. Now, I want to add more resolutions. I already found an easy way to change values in code, the problem is on another topic. That's how the game looks on 1600x900. Then, I am trying to set resolution 800x600. What I want to achieve, is to make images with resolution lower then the one set in

Android, images and dpi

笑着哭i 提交于 2019-12-24 04:31:49
问题 I am using WVGA800 skin in Android emulator, so the density (hw.lcd.density) is 240. I have to put 4 image buttons (72 pixels per inch) at the bottom of activities view. As the resolution is 480X800, I asummed that the width of image must be 120 pixels. The problem is when application is launched, the 3 buttons take all width and there is no place for 4th button... Then I created button image in Fireworks with resolution 240 pixels per inch and in 120px width, but problem remains. Could

Change Screen resolution on EC2 Windows server 8 R2?

我与影子孤独终老i 提交于 2019-12-23 20:05:06
问题 what will be the easiest way to change the resolution on Ec2 Windows server? I am running Windows 8 R2 Any idea appreciated...:) 回答1: That setting comes from your client. If you are connecting over remote desktop, go to the display tab and then set the 'display configuration' to the value you want. You many seed to select the 'show options' link first if your are opening your connection from the mstsc command. 回答2: If you need to change the actual resolution on the computer itself (if you for

Android - resize image in gallery based on device resolution

余生颓废 提交于 2019-12-23 19:28:51
问题 I have an Android app that pulls in images from the Web. However when I set: <supports-screens android:anyDensity="true" /> the gallery appears to be set to the minimum supported resolution. Here is the gallery layout definition: <?xml version="1.0" encoding="utf-8" ?> <LinearLayout android:id="@+id/GalleryLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="