overlay

Why getOverlays() is undefined for the MapView?

不打扰是莪最后的温柔 提交于 2019-12-14 03:07:28
问题 My qestion might be easy sinse I'm android begginer. I'm following the Tutorial and have succeed in a first part of creating a map activity. But now I'm trying to add an overlay items. The problem is in my .java code: List<Overlay> mapOverlays = mapView.getOverlays(); this line is presented in all tutorials. But I get the error message like: 'The method getOverlays() is undefined for the type MapView'. Can anybody help me to solve it? code: package com.example.mapsdemo; import java.util.List;

Drawing a rectangle (or line, or bitmap) on the camera preview stream (.NET Compact Framework)

北战南征 提交于 2019-12-14 02:59:20
问题 I'm working on a .NET CF 2.0 application that uses the camera, showing the preview and allowing the user to take a photo. I'm using the CameraCaptureDialog component and I wanted to draw a rectangle on the preview screen, but I wasn't able to do it... Any ideas? Do you think the Overlay mixer filter in DirectShow can be useful? If so, do you have any example? (The problem is I work on the CF 2.0, so many solutions that work ok for the normal framework here don't work...). Thanks in advance,

Dim overlay by swiping on Windows Phone

那年仲夏 提交于 2019-12-14 02:22:00
问题 I have a rectangle as an overlay and I want to modify its opacity by swiping up and down, like in the app Free Talking Alarm Clock. I figured out, that I have to deal with ManipulationStarted and ManipulationDelta events, but not sure which value to use. At this point I'm able to change the opacity by swiping, but changes only when the swipe is completed, and I want the opacity to change while I'm swiping. How do I do that? Right now, I have this: private Point initialpoint; private double

Adobe Creative SDK Android custom overlay images for Image Editor UI

此生再无相见时 提交于 2019-12-14 00:05:52
问题 I implemented the Image Editor UI in my app. There is a feature "Overlay" in it which lets the user to surround his image within a given overlay that is made by the SDK. I want to add my own custom overlays to it, and block other overlays if possible. I couldn't find any documentation about that. Is that possible? Thanks! 回答1: Custom content is not a feature offered by the Creative SDK Image Editor. All content, including Overlays, is limited to what you see in the Image Editor. 来源: https:/

jQuery Overlay to focus on a particular div only. No Plugins please?

微笑、不失礼 提交于 2019-12-13 20:25:36
问题 I am trying to achieve a modal overlay using jQuery. When a user clicks on a particular button the popup div has to open up. The rest of the page should be grayed out. In other words nothing on the page can be selected or clicked other than this pop up. How can this be acheived? I have written the follwing: CODE and result is HERE I am not able to focus only on the div. For me the background is also active. How do I disable the area other than the pop up div? HTML: <div id="mainContainer"> I

using ffmpeg to add overlay with opacity

别来无恙 提交于 2019-12-13 13:32:33
问题 I have a problem with ffmpeg,I try to add a png files over a video i found how to add just I want this png file have some opacity I tryed this line ffmpeg -n -i video.mp4 -i logo.png -filter_complex "setsar=sar=1;blend=all_mode='overlay':all_opacity=0.7" -movflags +faststart tmb/video.mp4 with this line ffmpeg return this error Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_blend_1 and there the complet log ffmpeg version 2.7.5-0ubuntu0.15.10.1 Copyright (c) 2000

How to draw a line between points in google map in Android

可紊 提交于 2019-12-13 12:19:31
问题 I already wrote a program that read locations from android GPS ; each locatin(long , lat) will be sent to remote server to save it and display it in a website map. what I'm trying to do now is to display my path in android by drawing line between the points I didn't find any sufficient answer until this moment! so how this can be done? 回答1: You can draw line between points as: public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { Projection projection = mapView

How to add buttons on an overlay layout with an image

大兔子大兔子 提交于 2019-12-13 11:05:34
问题 I wanted to set an image as background in order to put buttons above it, so I used the Overlay layer. Ι just wanted to change the position of the buttons and put them above the picture, but I cannot find a way. public static void main(String[] args){ Menu program = new Menu(); SwingUtilities.invokeLater(program); } public void run() { JFrame frame = new JFrame () ; Get_size get_size = new Get_size() ; get_size.Size_screen() ; int h = (int)height ; int w = (int) width; frame.setSize(w , h );

Overlay a fetched image over itself (with transformations) with Cloudinary

核能气质少年 提交于 2019-12-13 08:24:23
问题 I would like to generate an image with to versions of the same fetch image, like this one: Here are the two versions: The background: https://res.cloudinary.com/nho/image/fetch/w_1024,h_512,c_thumb,g_auto,q_auto,f_auto/e_brightness:80/e_blur:3000/https://nicolas-hoizey.com/2016/08/a-bridge-not-so-far.jpg The overlay: https://res.cloudinary.com/nho/image/fetch/w_1024,h_512,c_fit,q_auto,f_auto/https://nicolas-hoizey.com/2016/08/a-bridge-not-so-far.jpg I don't understand how to do that with the

Convert custom google map into an image

流过昼夜 提交于 2019-12-13 08:10:10
问题 I have been challenged with following problem. I have a google map, I apply custom overlay over all the tiles. Map works flawlessly in the browser, but for each point of interest I need to present an image with marker on a different page. To achieve this, most people use Google Static Map API, but that doesn't seem to be supported with custom tile overlay (because it cannot render the overlay in the image). Unfortunately after searching it looks like static maps api doesnt support custom map