el zoom de un ImageView hunde mi imagen bajo mi fragment(android)

hola estoy programando en android estudio y en mi vista tengo un fragment donde activo la cámara y sobre este cargo una imagen(algo así como los filtros que usa la cámara de instagram). lo que pasa es que cuando manipulo el imageview para hacer zoom el imageview se esconde bajo el fragmente. trate de usar elevation para darle altura pero no sirve.

mi activity esta así

   <RelativeLayout             xmlns:android="http://schemas.android.com/apk/res/android"               xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".PruebateloActivity">     <LinearLayout         android:layout_width="match_parent"         android:layout_height="match_parent">         <FrameLayout             android:id="@+id/fragmentpruebatelo"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:layout_below="@id/fullscreen_content"             android:fitsSystemWindows="true">         </FrameLayout>     </LinearLayout>     <RelativeLayout         android:layout_width="match_parent"         android:elevation="100dp"         android:layout_height="match_parent">         <ImageView             android:id="@+id/fullscreen_content"             android:layout_width="match_parent"             android:layout_centerVertical="true"             android:elevation="100dp"             android:layout_centerInParent="true"             android:layout_height="match_parent"             android:gravity="center"             />     </RelativeLayout> </RelativeLayout>     

Why is pan (and zoom) not working on my Chart.js graph?

I’m making a linear graph and the pan and zoom functionality are not working. I’m using:

"chart.js": "Chart-js#v2.5.0", "chartjs-plugin-zoom": "Chart.Zoom.js#v0.7.0", "hammerjs": "v2.0.8" 

and added them in this orden in the html:

<script src="~/lib/hammerjs/hammer.min.js"></script> <script src="~/lib/chart.js/dist/Chart.min.js"></script> <script src="~/lib/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.min.js"></script> 

I’m using chart.js 2.5.0 because i needed it to work on IE11 and read somewhere that it was better to use that version, but I’m not sure about that.

I copied a working code from snippets online, but it’s still now working.

<canvas id="canvas" height="180"></canvas>     <script>         var ctx = document.getElementById("canvas").getContext('2d');         var myChart = new Chart(ctx, {             type: 'bar',             data: {                 labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept'],                 datasets: [{                     label: '# of Votes',                     data: [12, 19, 3, 5, 0, 5, 9, 4, 11]                 }]             },             options: {                 pan: {                     enabled: true,                     mode: 'x',                 },                 zoom: {                     enabled: true,                     mode: 'x',                 }             }         });     </script> 

The graph shows but I’m not getting the functionalities and in the console there are no errors.

Thanks in advance.

How to zoom in on picture in Apple Keynote

I’ve been trying to figure out how to slowly zoom in or ease in on a picture in keynote. I would like the effect to be something like this -> https://www.youtube.com/watch?v=6af4AQG-r4E (go to 0:55 seconds). I’ve built a keynote presentation in a similar layout to what you see in the video. Additionally, the video also has effects where the image pans sideways. Is it possible to do any of these effects in keynote?

High resolution photography with C API and optical zoom

I am currently looking for solutions to take high resolution photos of objects via a dedicated software. (The software will be developed by myself.) Therefore I am looking for ideas for cameras, where:

  • The camera has a full API (settings, focus, exposure, etc…) available in C/C++. (Similar to the Canon EOS-SDK)
  • The camera supports an optical zoom via the API. (The objects vary between 3m and 0.5m in size, I would like to zoom in for the smaller objects to capture them with max resolution)

As far as I know the Canon cameras (EOS) do not support optical zoom via their API, all I would be able to do is to crop the image in the SW hence simulating a digital zoom.

Do you have any suggestions, which products I should look at closely? (I am not much of a photography expert)

Thanks in advance,


Is it possible to calculate focal length of a picture taken with a zoom lens if you know the aperture?

I need focal length (for my IA homework), but I didn’t know that in real world I would only get the aperture. Ok, my camera is an Olympus X-21, and manual says:

Olympus lens: 6.3 to 18.9 mm, f/3.1 to 5.9

I’ve taken two pictures with zoom and the aperture is f/4.2 for the first one and f/5.7 for the second one.

But I need the focal length, I don’t know how these numbers are related to each other so I’m lost. Does anyone know a formula I can use? Thanks in advance.

Best lens for landscapes/general zoom with Nikon D7200?

I have been using D7200 for almost 4 years now, got the 18-140mm kit lens along, which i have stopped using since an year now, the image quality was pathetic, lacked sharpness throughout the photo, I am looking for a replacement, I mostly shoot Landscapes, couple shoots or portfolios, events. So i need something which covers wide to telephoto range. Maybe a 24-120mm? Is it a good lens? Never got a chance to test it!

What is the theoretical relation between zoom length and guide number for a flash?

The point of a guide number is to specify the relation between aperture number and distance. For zoomable flashes there are still extensive tables considering ISO number and zoom length. The relation with ISO is straightforward (the square root of the ISO number factors into the guide number). The relation with zoom length tends to be inscrutable. Part of the reason is that zoom length and light angle are somewhat non-linearly related at wider zoom levels (should be 2 arctan (18mm/f) horizontally and 2 arctan (12mm/f) vertically with f being the 35mm equivalent). But at least at longer zoom levels, one would imagine a somewhat predictable relationship.

Assuming that the zoom head makes best use of the available light output (and for the sake of simplicity we are zoomed far enough that arctan(x)=x is a reasonable approximation) what would be the expected effect on the guide number? Whatever I come up with seems so far from the actual tables that I seriously doubt my assumptions.