Libgdx handle SVG - java

I want to know if there is a possibility to use svg graphics with libgdx. I know that Libgdx itself can not handle svgs but is there a possibility with an extension or a method which pre creates PNG's/JPG's out of the SVG's and pass them to Libgdx?

No, currently not supported.
For simple shape rendering you can use ShapeRenderer. You can't parse .svg file because of cross platform support.
For android you can use https://github.com/pents90/svg-android
Also check this thread, It may be helpful.

Related

How to create a video from a series of images with transition

I want to create a video from a series of images and add a transition between the images (e.g., fade in and fade out). I’m looking for a Java solution and not a C++ one (FFmpeg or anything else).
I checked out JCodec and MediaCodec, but none of those support image transitions.
Have you already tried it with OpenCV for Java? OpenCV offers almost everything you need for such a task. To the transitions you would have to worry about then manually with image blending. But that can be solved with OpenCV too. Just take a look at the documentary
EDIT:
It looks like the Java API lacks the appropriate module that can encode a sequence of images. You can fade images in any case. Take a look at the tutorial. This means you would have to crossfade the images with OpenCV and then use another API (e.g. jcodec) to make a video from the images you create.

Android: bend bitmap/image to set as a cylindrical shape

Is it possible to bend an image or bitmap, like belows, using android's native graphics library?
I have found ImageMagick and JHLabs image processing libraries, which can be used to achieve this type of effect. But, I don't wish to use those complex library to achieve only this effect.
Is there any other simple ways to do this? Also, i've no experiences in android opengl :(

Drawing API for java?

I want to be able to draw and erase on an image in java (NOT javascript). Are there any APIs for that? Bonus points if i can also draw vectors, but it's not necessary. I want to use it in my program, so I'm not looking for a stand alone program. Thank you!
Why not use the graphics classes built into java? There is a simple tutorial for this here. You really just need to get a graphics context and then you can draw whatever you like on the image.
Another option would be to use Processing
diagrams and images can be drawn using an API that can produce SVG images. I can remember two API's that are capable of this. One of them is Batik and the other is SVG Salamander.

Manipulating an image on App Engine

I'm trying to draw text to an image from Java in the Google App engine, but I've found no methods (since the java.awt.image.* isn't whitelisted) to do it with. I'm also trying to "layer" one image on top of another, which I can't figure out how to do.
Is there any way to draw text on an image or overlay one image over another in App Engine using Java? Has anyone found any other solutions to this?
You have to use Google's Images API instead.
Not sure if it can do all you need it to, but it does include image composition.

How to render good quality image from 3d scene in java/c++

i need to develop simple 3d application ( i don't know if its going to be java or c++ )
now how to use 3d engine i know , but in the end i need to produce rendered image or movie
out of the 3d scene.
who should i do it in application ?
If you need an image with really good quality I think you should use a 3D engine with ray tracing.
Implementing a raytracer might not be a easy task, so my recommendation is to use an existing one, like for example POV-Ray. I think it's possible to embed it in other applications. Raytracing stills takes some time, so the rendering will not be in real time.
In Java you can use Java3D but you will need some work.
Java 3D API
http://java.sun.com/developer/onlineTraining/java3d/
At
http://www.javalobby.org/articles/ultimate-image/#4
you'll find a description on how to render images to an Image instance, and how to save that to a file in Java

Categories