vector-graphics

Using PDFs for icon images in Xcode 7.2

情到浓时终转凉″ 提交于 2020-01-03 14:16:09
问题 I'm attempting to use PDF files as icons in an app I'm working on. The issue I'm encountering is I'm getting inconsistent tint colors. If I set a button image from interface builder, the icon image shows up black at runtime. Every time. Regardless of what I attempt to set from interface builder. I tried setting my button icon image via code and instead of showing up black , it's white : let myGraphicFile = UIImage(named: "myPDFImage") let myButtonImage = myGraphicFile?.imageWithRenderingMode

Produce PDF files, draw polygons with rounded corners

隐身守侯 提交于 2020-01-01 05:33:06
问题 What's the right tool for the job if I want to write a Python script that produces vector graphics in PDF format ? In particular, I need to draw filled polygons with rounded corners (i.e., plane figures that are composed of straight lines and circular arcs ). It seems that matplotlib makes it fairly easy to draw rectangles with rounded corners and general polygons with sharp corners. However, to draw polygons with rounded corners, it seems that I have to first compute a Bézier curve that

WPF 2d vector-graphics library

馋奶兔 提交于 2019-12-31 10:56:09
问题 I'm looking for a WPF library for 2d vector graphics. Required features API for: drawing shapes editing shapes highlighting shapes Optional features: possibility to save image to a binary file and to load image from such file (format doesn't matter) own editor which has UI for creating and editing shapes and which can be integrated in an application (WPF control or external application) Both free and commercial libraries are acceptable. P.S. In the last resort WinFroms libraries are

Is it possible to compile potrace for iOS?

独自空忆成欢 提交于 2019-12-30 05:30:11
问题 Looking at the cross-platform nature of potrace http://potrace.sourceforge.net/, is it possible to compile this for iOS? If so, how? 回答1: Yes, it is possible to compile potrace for iOS. As a matter of fact, most open source libraries using standard (GNU) configure tools that compile on MacOS X will easily compile on iOS, because they are likely free of platform-specific code (e.g. linuxisms ) and standard configure tools allow cross-compilation. You can compile these libraries in the shell by

VectorDrawable with GoogleMap BitmapDescriptor

风流意气都作罢 提交于 2019-12-30 00:16:45
问题 I have problem with google maps BitmapDescriptor while creating icon for MarkerOptions using VectorDrawable , API 5.0+ Method used for creation: @NonNull private BitmapDescriptor getBitmapDescriptor(int id) { return BitmapDescriptorFactory.fromResource(id); } Everything works great when id argument contains png drawable, however if I try it with VectorDrawable defined in xml, App always crash when googleMap.addMarker(marker) ( BitmapDescriptor is not null). 11-05 10:15:05.213 14536-14536/xxx

Vector graphics in Javascript?

梦想与她 提交于 2019-12-29 17:48:07
问题 One of the advantages of Flash/Flex is that you can use vector graphics (SVG), which is nice. I did a bit of searching around and came across this Javascript vector graphics library. It's pretty simple stuff but it got me thinking: is there any possibility of using vector graphics files such as SVG with Javascript/HTML or it just can't be done or done reasonably? 回答1: I've used Raphaël Javascript Library and it worked quite well. Currently the library supports Firefox 3.0+, Safari 3.0+, Opera

Vector graphics in Javascript?

喜夏-厌秋 提交于 2019-12-29 17:46:11
问题 One of the advantages of Flash/Flex is that you can use vector graphics (SVG), which is nice. I did a bit of searching around and came across this Javascript vector graphics library. It's pretty simple stuff but it got me thinking: is there any possibility of using vector graphics files such as SVG with Javascript/HTML or it just can't be done or done reasonably? 回答1: I've used Raphaël Javascript Library and it worked quite well. Currently the library supports Firefox 3.0+, Safari 3.0+, Opera

Using a XAML file as a vector Image Source

社会主义新天地 提交于 2019-12-28 03:53:05
问题 I would like to be able to use vector graphics, preferably defined in XAML, as the Source of an Image control, just like I can currently use a raster image like a PNG. That way I could easily mix and match between bitmap and vector images, like this: <StackPanel> <Image Source="Images/Namespace.png"/> <Image Source="Images/Module.xaml"/> </StackPanel> Module.xaml would most likely have <DrawingImage> as its root element instead of <UserControl> . Actually, what I'm really going for is this,

Convert VML graphic to bitmap on the ASP.NET server

≡放荡痞女 提交于 2019-12-25 04:45:08
问题 I'm using RaphaelJS . The browser renders a chart for me (which is in VML as all my users are on IE). I want the user to be able to save this image and share it normally eg paste into an email, into powerpoint, into a document etc etc. Problem is not many things can render VML. I can easily get the VML markup describing the image back to the server. All I want to do is convert it to some kind of more universal format eg PNG, BMP, GIFF, whatever which I can then allow the user to download. I

RaphaelJS HTML5 Library: glow animate along the circle

不问归期 提交于 2019-12-24 21:19:01
问题 I have a circle which I move it around, how can I make for the glow effect to follow that circle. circle = paper.circle(x, y, 5); glowSet = circle.glow({ 'fill': true, 'color': '#bbb' }); // ... // I animate the circle later on using circle.animate({ cx: coordX, cy: coordY }); I've tried with animate on the entire set glowSet.animate({ x: coordX, y: coordY }); I've tried to apply to each item using forEach over the set glowSet.forEach(function(item) { item.animate({ x: coordX, y: coordY }); }