Can we display Camera pixels (both primary and secondary) in Android Studio? If yes, How to display?
CameraManager cameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);
tvCamera.setText(String.valueOf(cameraManager.getCameraCharacteristics()));
I left "getCameraCharacteristics()" blank. Please help me out with this.
You can check this source:
Camera2Raw
Related
I am using an ImageView.
Having a picture inside, working well as aspected with 10.9 sdk.
[_myImageView setImage:myImage];
Since 10.10 sdk the picture has transparency. (10.11 too)
Has anyone a hint of the common way to get the transparency out of the picture?
Thank you!
I have converted one of my Windows Store applications to a universal application and added a Windows Phone project to it.
When rendering the graphics (Image and Rectangles with ImageBrushes) the graphics always gets scaled even if I set it to not scale which is not how expect it to work.
Example:
I have an image that is named test.scale-100.png which is 27*27 pixles.
The same image exists as a 32*32 pixel sized image named test.scale-140.png and another named test.scale-240.png which is 59*59 pixles
I use this image in my default layout the following way:
<Image x:Name="imgTest" Source="/Assets/test.png" Stretch="None"/>
When I start my app with the Windows Phone 8.1 WVGA 4 inch emulator the 32*32 image is shown with the correct bounds, but the actual image is scaled (I can see that quite simple because the content gets blurred).
The same happens when I start the app with the Windows Phone 8.1 1080p 6inch emulator; The image is 59*59 pixles but the image is a bit blurred.
How can I force scaling to not be performed?
Thanks in advance for any help!
I am not sure. I am looking for a solution right now too. But I found that scaling is not supported in Windows Phone 8.1. Only Windows Store apps are working with scaling. Take a look at link below.
http://msdn.microsoft.com/en-us/library/windows/apps/dn263244.aspx
So, the way how to scale images is to use height/width propreties to force size of image or you can use BitmapImage and its property DecodePixelHeight/DecodePixelWidth together with Height/Width properties to decode the image.
Hope it helps ;)
I have the same issue, I think this is an OS bug:
Test 1
test.scale-100.png +
test.scale-140.png +
test.scale-240.png
= Blurry result
Test 2
test.scale-240.png
= Blurry result, again
Test 3
test.scale-240.png renamed to test.png
= Sharp result!
The problem occurs only with certain assets, not all. In my case only in some DataTemplates. I think that in some situations the system scale the image incorrectly, with an horrible blurry result. If you leave only the "scale-240" image, it is blurry. If you rename it removing "scale-240", it becomes sharp!
In summary, name the image as test.png and stop.
As MSDN says:
Don't use images that aren't sized to multiples of 5px. Units that aren't multiples of 5px can experience pixel shifting when scaled to 140%, 180%, and 240%.
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465362.aspx
Your Width="53" Height="53" could be the issue of incorrect behavior
Any Suggestions or guidance will Help. How to create a drawing canvas in a windows phone Application.
Like the pencil tool in Paint. is it possible. A logical Expression will also Help.
See i Cant code the entire thing But here's a link that might help Go through it carefully.
Drawing on canvas windows phone
Let me know if any confusion
I have a windows 8 app. The app consists of image buttons which are sort of distorted when I run them in a simulator with "1024 x 768" resolution.
The point being, I am not able to specifically design for that resolution, because my visual studio won't allow me to design at that resolution.
Looking at the picture will clear my exact description of the problem.
I am looking for the resolution 1024 x 768 in the drop down menu, but I can't find any.
AFAIR 1024*768 isn't a valid physical size. You should find it in the "there's something else snapped to the side" category (the second icon to the right of "View" and above "FullScreenLandscape").
Look at the top of your image. Do you see the view selector? The Visual State is Fullscreen. Change that to the fill view (the 3/4 view) and you should see the 1024x768 view.
For further reference regarding Metro screen sizes, read: this blogpost from Microsoft.
Edited 10/13
I see this on the simulator for my app even not in snapped view:
What version on VS are you running? I am running Version 11.0.50727.1 RTMREL with .NET c4.5.50709
In Expresson player when showing a video with 4:3 aspect ratio the full screen video image crops of some of the picture at the bottom, and inserts a black bar at the top. What part of the code should I change to fix this issue?
I had exactly the same problem, I have listed how to fix it with Expression Blend here:
http://social.expression.microsoft.com/Forums/en-US/encoder/thread/e58270bf-e101-4a13-ab8c-e7b3b7dbc2a9