blurry

Android Low picture quality after shot

微笑、不失礼 提交于 2020-01-11 14:22:31
问题 I have a button that triggers an image capture : private void capturePicture() { if(ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED){ Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Tiến hành gọi Capture Image intent startActivityForResult(intent, 100); } else ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.CAMERA}, 200); } Right after I take the shot, I see the capture and the

iphone, when saving image with “renderInContext” to device, the image is blurry?

梦想的初衷 提交于 2019-12-23 07:56:10
问题 I'm using this code to render an image from view. Then i am saving it to photo album. The image is blurry? Why? Is there a solution? UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); Tnx all. 回答1: You are propably using a retina device, Change the following UIGraphicsBeginImageContext(self.view.bounds.size) to

OpenCV with Laplacian formula to detect image is blur or not in Android

喜你入骨 提交于 2019-12-23 03:36:06
问题 In Ios we can: Is there a way to detect if an image is blurry? I don't know how to detect image is blur or not in Android or Java? 回答1: private void opencvProcess() { BitmapFactory.Options options = new BitmapFactory.Options(); options.inDither = true; options.inPreferredConfig = Bitmap.Config.ARGB_8888; Bitmap image = decodeSampledBitmapFromFile(picFilePath, options, 2000, 2000); int l = CvType.CV_8UC1; //8-bit grey scale image Mat matImage = new Mat(); Utils.bitmapToMat(image, matImage);

Core Text paragraph inside a UIScrollView is blurry

旧巷老猫 提交于 2019-12-23 03:22:16
问题 I tried drawing a long paragraph as an NSAttributedString in a view inside a UIScrollView. Weird thing is, the top of the paragraph is not blurry, but the more I scroll to the bottom the blurrier it gets ! I am well aware of the small issues you can have with Quartz and floats, therefore I tried to set the frame of the view 0.5 points below. Now the top of my paragraph is blurry, and the bottom is OK (!) I really don't know how to fix this, and would appreciate any help ! Thank you ! 回答1:

React Native - How to do Blur View like iOS or instagram?

假如想象 提交于 2019-12-22 08:09:45
问题 Background Transparency with BLUR Is it possible to blur view without using background Image? I want to show the parent content on top of the background blur view in modal . Similar kind of this: Tried with react-native-blur : Its actually blurring the background image. I want to blur and show the content which is behind the modal. Tried along with react-native-overlay : But no change. 回答1: well if you are using expo then you should go and check out this link here else if you are like me who

React Native - How to do Blur View like iOS or instagram?

∥☆過路亽.° 提交于 2019-12-22 08:09:04
问题 Background Transparency with BLUR Is it possible to blur view without using background Image? I want to show the parent content on top of the background blur view in modal . Similar kind of this: Tried with react-native-blur : Its actually blurring the background image. I want to blur and show the content which is behind the modal. Tried along with react-native-overlay : But no change. 回答1: well if you are using expo then you should go and check out this link here else if you are like me who

SVG with drop-shadow blurry on mobile browser

时光总嘲笑我的痴心妄想 提交于 2019-12-22 00:29:39
问题 i am struggling to make work SVG icons with drop-shadow on as much as possible platforms. I am using following simple CSS for that: .test{ width: 14px; height: 14px; background-image: url("../images/test.svg"); background-repeat: no-repeat; opacity: 0.8; -webkit-filter: drop-shadow(1px 1px 0px #E0E0E0); } On Desktop browsers like Chrome, Firefox & IE its working good. But on mobile Browser the problems begin: In Chrome the icon gets blurry & in Firefox the drop-shadow is just ignored. When

Large text appears blurry

青春壹個敷衍的年華 提交于 2019-12-20 02:37:26
问题 I'm using SFML 1.6 to make a small game, and I need to display some text, so I use the sf::String class. The problem is, when I increase the size to 96pt, the edges appear a little blurry. When I increase the size of text in Microsoft Word though, it appears very clean and has crisp edges. Is there a way to do that with SFML? 回答1: Looking at the SFML sources, it appears that it is using the embedded Arial font. Yes, it can also load the .ttf font file, but I guess you didn't load it yet. So

Blurry UILabel when added programmatically

╄→尐↘猪︶ㄣ 提交于 2019-12-17 23:07:38
问题 I am adding a UILabel to a view meant for loading purposes. However, it gets blurry after I added it. The weird thing is that I just about the same code for an loading view which is loaded ontop of an UITableViewController and it works great there. Yet, this one on top of an UIViewController is blurry. This is my code: float x = (self.view.frame.size.width-20)/2; float y = (self.view.frame.size.height-70)/2; // Add loading and sub text UILabel *loadingText = [[UILabel alloc] initWithFrame

Webkit-based blurry/distorted text post-animation via translate3d

烈酒焚心 提交于 2019-12-17 03:53:50
问题 This issue appears to affect all WebKit-based browsers, including the iPhone. First some background. The site I'm working on uses a JavaScript-based 'slider' animation. I'm using -webkit-transform: translate3d to 'power' the actual animation. When using this method, as opposed to a JavaScript-based method, the text becomes all blurry once the content has been animated. This is especially noticeable on the iPhone. A few workarounds I saw were to remove an relative positioning, which I did, and