high-resolution

loading logic of high resolution images by naming convention in iphone

こ雲淡風輕ζ 提交于 2019-12-07 18:19:48
问题 According to Apple's naming convention for high resolution images When we provide just name.png, iphone 3 and iphone 4 will display it. When we provide also name@2x.png which has higher resolution than name.png, this time iphone3 will display name.png and iphone 4 will display name@2x.png. Here is my question what if we only provide name@2x.png? Ok, iphone 4 will display it. Can iphone 3 display this image? Thank you in advance.. 回答1: No, it can't. Non-retina devices will not find the image

Why is my audio AVCaptureConnection not active for highest-resolution formats?

情到浓时终转凉″ 提交于 2019-12-07 01:51:00
问题 I'm working on an iOS project which uses AVAssetWriter and AVAssetWriterInput to record audio and video to file. Everything seemed to work fine when the video resolution was limited to 720x1280. I'm now trying to take advantage of the AVCaptureDeviceFormats for higher resolutions available on newer iOS devices. The video continues to work fine using any of the AVCaptureDeviceFormats available on the device. However, the audio does not work. I've tracked this down to the active property of my

How to activate @2x high res graphics for retina display?

自古美人都是妖i 提交于 2019-12-06 08:16:45
I have an old app and created @2x high res images for it. Now I've incorporated all these into my project, but when I build and run the app on the retina display test device I do not see the high res images. To be sure, I made some of them with strange colors so I know exactly if @2x is used or not. I also tried to clean my build and all targets first. It just seems the device is refusing to use high res images. Must I set a flag in the info.plist? it's a known issue with imageWithContentsOfFile: . In API docs, it says it should work, in reality it doesn't (didn't work in 4.0.x, not sure about

High-Resolution Processing Output

纵然是瞬间 提交于 2019-12-06 05:22:38
I'm looking for help with the programming language/environment Processing. I'm fairly new to Processing and I am experimenting with a piece of code from someone over at openprocessing.org. I really like the visual results this code delivers and I would like to further work with it. Unfortunately, the output is very low resolution. Hence I'm looking for someone who might be able to help me figure out how to a) Increase the size or resolution of the shapes generated and b) save everything as a pdf file. You can find the original code in action here: https://www.openprocessing.org/sketch/377730

Why is my audio AVCaptureConnection not active for highest-resolution formats?

随声附和 提交于 2019-12-05 07:27:05
I'm working on an iOS project which uses AVAssetWriter and AVAssetWriterInput to record audio and video to file. Everything seemed to work fine when the video resolution was limited to 720x1280. I'm now trying to take advantage of the AVCaptureDeviceFormats for higher resolutions available on newer iOS devices. The video continues to work fine using any of the AVCaptureDeviceFormats available on the device. However, the audio does not work. I've tracked this down to the active property of my audio AVCaptureConnection, which is NO for the highest-resolution formats, looking like this when I log

Creating huge high-resolution Bitmap bigger than 23k x 23k

故事扮演 提交于 2019-12-04 06:34:08
问题 I want to create a huge resolution Bitmap-image so that to load it into memory and transform it based on user-gestures. I noticed that the limit for new Bitmap(int32,int32); is around 23000 but I need like 1159480 x 45920 with a bitdepth of 32. Can someone help me out or is this impossible to do? I have 8 gigs of RAM. 回答1: ARE YOU REALLY SURE YOU NEED SUCH SIZE? It should be bigger than than 150GB . Moreover if you consider a point size of 1/72 of inch your image will be 409 km 500 m...

Change camera resolution setting programmatically in android

帅比萌擦擦* 提交于 2019-12-03 15:19:48
I'm using the below code to open the camera. Is it possible to set the camera resolution to high programmatically? private void openDefaultCameraApp() { Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(i, CAPTURE_PHOTO_CONSTANT); } Zaid Daghestani You must add an MediaStore.EXTRA_OUTPUT to the intent. In the extra, you have to specify a Uri for the picture to be saved to. This will save the full resolution image, otherwise, it will just snap a small image. Refer to the Android docs: ACTION_IMAGE_CAPTURE Standard Intent action that can be sent to

High Resolution images in a uiwebview

扶醉桌前 提交于 2019-12-03 12:55:48
问题 I have a webview that displays an image, as shown in the code below. The bundle also has a DGT64@2x.png with dimensions of 128x128 for use on the iPhone4. The DGT64@2x.png never shows. Is there a way to display either/or depending on whether it's an iPhone or an iPhone4? <img src="DGT64.png" width="64" height="64" align="left" style="padding:2px;"/> 回答1: I don't think the @2x trick works with web content. Sounds really useful though, I would certainly file a bug with Apple to request that. If

High Resolution images in a uiwebview

强颜欢笑 提交于 2019-12-03 03:14:36
I have a webview that displays an image, as shown in the code below. The bundle also has a DGT64@2x.png with dimensions of 128x128 for use on the iPhone4. The DGT64@2x.png never shows. Is there a way to display either/or depending on whether it's an iPhone or an iPhone4? <img src="DGT64.png" width="64" height="64" align="left" style="padding:2px;"/> I don't think the @2x trick works with web content. Sounds really useful though, I would certainly file a bug with Apple to request that. If you are generating the above HTML from your app then I think the best way for now will be to detect if you

About responsive sites, pixels, and density

送分小仙女□ 提交于 2019-12-02 15:11:52
问题 I have coded a responsive website, in which I have CSS media queries to detect the screen size(pixels) of the device the user is navigating with. Just standard medias. Example: @media (max-width: 1199px){ /*code*/ } @media (max-width: 991px){ /*code*/ } @media (max-width: 767px){ /*code*/ } When I test my website with my mobile, which is a Samsung Galaxy S4 with 1920x1080 pixels my website shows me the mobile version, which is in this case the @media query with a max-width of 767px. I