vector-graphics

How do I convert an Illustrator file to a path for WPF

筅森魡賤 提交于 2019-12-03 12:24:07
Our graphics person uses Adobe Illustrator and we'd like to use her images inside our WPF application as paths. Is there a way to do this? We use Expression Design to do this. Unfortunately, there currently is no free beta preview like Blend 2.5, however, you can download a trial copy (which I think you can use for 90 days). If you don't want to go this route, I know that a lot of people also use Mike Swanson's exporter that is pointed to by curtisk above. This should fit the bill AI->XAML DuckMaestro You can go from AI to SVG to XAML. From Adobe Illustrator: File -> Save As -> *.SVG. SVG

What libraries are available to help create 2D Java games for phones?

淺唱寂寞╮ 提交于 2019-12-03 08:40:38
I want to begin developing 2D Java games for phones (on J2ME) therefore I'd like to know if any libraries or "engines" exist to help out in the various graphical tasks: Drawing text with pixel fonts? Drawing bitmaps for sprites with multiple frames like animated GIFs? Drawing graphics with code, lines, beziers, flood-filling and gradient fills ? Ordering / layering of sprites? Or maybe a great book exists, that gives you enough code samples to get off the ground quickly? I didn't use it myself, but heard some good reference on here . And here is even a list of libraries, you might need. MIDP

How do I find hash value of a 3D vector?

白昼怎懂夜的黑 提交于 2019-12-03 08:21:17
I am trying to perform broad-phase collision detection with a fixed-grid size approach. Thus, for each entity's position: (x,y,z) (each of type float), I need to find which cell does the entity lie in. I then intend to store all the cells in a hash-table and then iterate through to report (if any) collisions. So, here is what I am doing: Grid-cell's position: (int type) (Gx, Gy, Gz) => (x / M, y / M, z / M) where M is the size of the grid. Once, I have a cell, I'd like to add it to a hash-table with its key being a unique hash based on (Gx, Gy, Gz) and the value being the cell itself. Now, I

Is DxScene the “WPF for Delphi”? Anyone used it?

Deadly 提交于 2019-12-03 06:51:06
I am playing with DxScene and VxScene: http://www.ksdev.com/dxscene/index.html It looks very nice and powerful: 3d accelerated vector graphics, cross plaform, nice effects, many 2d GUI controls (vector based), good scaling, transparency, rotating (x, y, z), 3d models, etc. Even with many effects, the CPU stays very low (0%)! http://www.ksdev.com/dxscene/snapshot/screen0.jpeg But can it be seen as a good WPF alternative for Delphi? And does anyone use it instead of normal Delphi VCL? Yes, I am using it now in a new project and intend to use it for all future projects. It's indeed extremely

Displaying vector graphics in a browser

依然范特西╮ 提交于 2019-12-03 05:23:30
I need to display some interactive (attaching with DOM listeners etc. and event handling) vector graphics in web site I am working on. There is a W3C recommendation for SVG though this format is still not recognized by Internet Explorer support of which is a must (for a public website). IE handles VML though and there are even javascript libraries that do some canvas-like drawing depending on a browser (SVG vs. VML) - excanvas , GFX of Dojo Toolkit and more. That would be nice and acceptable though none of them can display an SVG image from the given markup. So the question actually consists

Direction of two points

可紊 提交于 2019-12-03 05:20:56
Some high school math concept has been forgotten, so I ask here. If I have two points p1(x1,y1) , p2(x2,y2) , the direction is P1-->p2 , that's p1 points to p2 . To represent this direction by vector, is it Vector(x2-x1,y2-y1) or Vector(x1-x2, y1-y2) ? By the way, what is the purpose to normalize a vector? Answer 1: it is Vector(x2-x1,y2-y1) Answer 2: Normalizing means to scale the vector so that its length is 1. It is a useful operation in many computations, for example, normal vectors should be specified normalized for lighting calculations in computer graphics. The normalized vector of v(x

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

不羁岁月 提交于 2019-12-03 04:59:50
问题 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

Are there any Android Drawable designers?

萝らか妹 提交于 2019-12-03 04:06:34
问题 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

Displaying SVG files in Android

£可爱£侵袭症+ 提交于 2019-12-03 03:41:43
问题 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

Replacing vector images in a PDF with raster images

守給你的承諾、 提交于 2019-12-03 03:10:18
问题 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