Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to figure out how to just highlight certain parts of an image for android. I'll do more once I can highlight the certain part of the image, but I can't seem to figure this out.
For example, I have an image of the human body. I just want to be able to select a part of it, such as the brain, arm, stomach, heart, etc. I'm using a image found online from a png file, let me know if it's better to create an image using java.drawable or if I can just work with the downloaded image.
What is the best way to go about this in Java? The only way I can think of is replacing the image with another selected one, but I don't want to have to handle 20 different images.
You might be able to overlay a highlight color or a highlight image by using the methods described at overlay two images in android to set an imageview
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I got a question here regarding in Android Studio (using Java). Is there any way possible that without using the VideoView widget, you can play video?
And if not then how do I change the VideoView visually.
I meant by adding different kind of buttons to it and adding different functionality to it. Like seeking, 10 sec forward or backward or something like that(I know that we can do it using the inbuilt one, but why not try it in the custom way) and all other kind of functionality we use when we play video on VLC kind of player.
So, if there anything like that, I would be grateful to hear about that!.
Thanks in advance!
You can try with ExoPlayer. It's easy and more customizable.
Use Media player with custom controls please go through attached link once Media Player with custom controls
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to include sth like a logo or a header/banner into my window. I possibly want to avoid using png/jpg Images, because this could look weird when my application runs on high res displays. So i created my banner as an svg. How can i insert this into my window? I know that it isn't possible to include it with the ImageView class of javafx, but i heard about the possibility to compose an svgpath-group in fxml/css and then load it via fxmlloader. But how do i do this whith all things like color gradients, ...? How do i have to compose my java/fxml document to show a scalable banner?
There are various options do do this. I gave you a hint to the first one already in your previous question. (Use e(fx)clipse and convert the SVG to an FXML file.) This also handles all the color and gradient issues.
Another option is to use this little library https://github.com/codecentric/javafxsvg which makes it possible to treat any SVG image in the same way as a regular JavaFX image. It is rendered internally and can thus be adapted to any size or resolution change.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to add an image from my backend to a certain pin, currently I can add the title and the snippet but how do i add and image to that?
You need to create Custom Info window for that. For Official documentation, you can refer this https://developers.google.com/maps/documentation/android-api/infowindows
Also you can find a sample tutorial here http://android-er.blogspot.in/2013/01/create-custom-info-contents-for-by.html
Also one more thing, you may not be able to distinguish between click events on various components of the layout as mentioned in the documentation.
As mentioned in the previous section on info windows, an info window
is not a live View, rather the view is rendered as an image onto the
map. As a result, any listeners you set on the view are disregarded
and you cannot distinguish between click events on various parts of
the view. You are advised not to place interactive components — such
as buttons, checkboxes, or text inputs — within your custom info
window.
But you can follow this workaround for making them work.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
First let me provide a brief description of what I am trying to accomplish:
I am trying to create a java program that can scan/read a qr code positioned in front of the computer webcam (The QR codes I would be using would all just have url information stored within them). After obtaining the url from the qr code I want to have the program automatically go to the url.
My first question is how do I use a computer webcam with Java.
My second question is how do I decode a QR code once one is captured.
Thank you for your assistance.
Alternatively is it possible to read qr-codes with .net?
In Java you could use LTI Civil to capture images from a webcam. Then pass the captured images to ZXing to decode the QR codes.
In .NET you could capture the images with AForge and then pass the images to ZXing.NET.
If you need more information, you should ask a more specific question.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm working on a cricket scoring web-based project where I need to display the scorecard page in a separate Large LED TV Monitor where the scorer has a different page to score in the browser, how I'm gonna achieve this? Any suggestions?
Technologies I'm using : Java, JSP, Servlets, HTML, CSS, JQuery, Javascript
First, you need a PC with a graphics card with two outputs, so you can attach two monitors.
The next step depends on your OS. Configure it to display one big desktop on both screens. now, you just need to open a new browser window with coordinates that are on the second big LED TV.
A number of large screen LED TVs have build in web browsing capabilities. You could possibly make use of one of those to output the result.
Alternatively you would need a separate device to drive the TV. In which case I would suggest an android tablet. Very easy to set up and a number of them (nexus) come with hdmi output.