vector-graphics

Vector graphics in Android

对着背影说爱祢 提交于 2019-12-03 03:04:56
问题 I'm working on an application that displays someone else's database of images. The images they have are all vector graphics and can be converted to any format, however keeping them in a vector format is good because users will probably want to zoom in closely. The question is, is there a built-in way to display a vector graphic in Android? The format doesn't matter - we can convert. The current format we're considering is PDF, but given that there's no native PDF support, I'd have to do

Using vector graphics in iPhone games

半世苍凉 提交于 2019-12-02 21:07:26
I'm Flash/AS3 developer and I'm wondering how some iPhone developers use vector assets in their games. For example, "Lil' Pirates": this games looks like vector-based, it's zooming and unzooming easily, but I can't get any information about using vector assets at iOS. mmccomb Quartz 2D is a pretty lightweight framework for vector based graphics. It's very well documented... Quartz Documentation In particular I'd pay particular notice to layering and performance... Quartz Layering and Performance If performance is a worry I'd also have a read through the core animation documentation. Core

matplotlib - plot outputs text as paths and cannot be converted to LaTeX by Inkscape

余生颓废 提交于 2019-12-02 18:15:37
I have a matplotlib plot that I would like to save in a vector graphics format to then use in a LaTeX document. I normally save it from matplotlib , open it with Inkscape and save it as PDF+LaTeX (omit text in PDF and create LaTeX file). This can also be achieved with: inkscape -D -z --file=in.pdf --export-pdf=out.pdf --export-latex However, for the following plot, the text is actually a series of paths. Each letter is separate, resulting in Inkscape not being able to save a different tex file. Why is the text not rendered as text but as paths in the code below? Note that the use of usetex

How to draw graphics as efficiently as possible in WPF

雨燕双飞 提交于 2019-12-02 17:44:59
I am creating a tool which relies heavily on graph-node trees. The current implementation is done in Java and I'm porting it to a generic code-base on C#, so it can be used by various rendering implementations and also because I want to use the power of WPF for a user-friendly interface. After browsing around for a day, I came across various methods to draw Vector-graphics through WPF. This guy speaks about different layers within WPF developers can choose from. As I want to use WPF PURELY for his rendering at first, I want to work on the "Visual Layer". I then came across things like:

Are there any Android Drawable designers?

六月ゝ 毕业季﹏ 提交于 2019-12-02 17:26:08
I would like to use more vector drawings in my Android applications. Providing images isn't as space efficient or as scalable as I would like it to be. Android provides a series of Drawable file formats , such as ShapeDrawable , which can be combined in a LayeredDrawable . To go very far down this path, it would be nice if there was a designer for visualizing the results, doing the drawing in, and handling all the resulting files. C# WPF has Expression Blend , Adobe has Flash CS4, and the iPhone has Opacity . So my question is, is there a designer or drawing tool for Android? Note: Other

Displaying SVG files in Android

*爱你&永不变心* 提交于 2019-12-02 17:10:31
I want to create an app that will display position on some floor plan. Navigation is implementing via WiFi in certain way, I've done it and so now I have a problem of displaying floor plan. It might be in some vector format, after surfing internet for some time I've decided that it must be svg file. I found some solutions, but it isn't working for me! Library svg-android There is opportunity to display .svg files, but only "simple" files. It works fine only for file in tutorial, but not for any other .svg file (for example, some other file, that you'll create with Inkscape). So, I decided,

Replacing vector images in a PDF with raster images

旧巷老猫 提交于 2019-12-02 16:40:24
Is there any easy (scriptable) way to convert a PDF with vector images into a PDF with raster images? In other words, I want to generate a PDF with the exact same (un-rasterized) text but with each vector image replaced with a rasterized version. I occasionally read PDFs of technical articles on my Kindle, and have found that reading a PDF directly is frustrating. Thankfully, Amazon's automatic conversion of PDFs to the Kindle format does a good job of reflowing the text portions of most of PDFs I have tried. However, while raster images seem to make it through the conversion process fine,

Vector graphics in Android

自作多情 提交于 2019-12-02 16:37:46
I'm working on an application that displays someone else's database of images. The images they have are all vector graphics and can be converted to any format, however keeping them in a vector format is good because users will probably want to zoom in closely. The question is, is there a built-in way to display a vector graphic in Android? The format doesn't matter - we can convert. The current format we're considering is PDF, but given that there's no native PDF support, I'd have to do something pretty complex just to get it working (for example, integrating poppler into my app via the NDK).

Rendering SVG with OpenGL (and OpenGL ES)

China☆狼群 提交于 2019-12-02 14:04:15
I am currently investigating the possibility of rendering vector graphics from an SVG file using OpenGL and OpenGL ES. I intend to target Windows and Android. My ideal solution would be to have a minimal C library that generates a polygon triangulation from a given SVG file. This would then generate standard OpenGL or OpenGL ES calls, and use a display list or vbo for optimization when redrawing. I would simply draw a display list to draw the vector image after translating and rotating, allowing me to mix this with other OpenGL calls. So far I see that the suggestions are to firstly use QT or

Shapes combination in Java?

我们两清 提交于 2019-12-02 12:43:38
问题 Does java Shape interface contract and library routines allow combining multiple shapes into one object extending Shape interface? For example, may I define class Flower which will consist of several ovals for petals and core? Or the Shape supposes only one continuous outline? If so then is there any class in Java for holding multiple shapes, may be some class for vectorized graphics? 回答1: To manipulate shapes in Java like you're describing, you want to use the Area class, which has these