Questions tagged [vector-graphics]

Vector graphics is the use of geometrical primitives such as points, lines, curves, and shapes or polygon(s), which are all based on mathematical equations, to represent images in computer graphics. Images are drawn at run-time from the information stored, and so vector images do not get distorted after zoom/resize etc.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
25 views

Has anyone ever studied Google Drawings clipboard format?

So it is well-known that Google Suite (Docs, etc.) does not support anything vector graphic other than copy-pasting from Google Drawings. It raises a natural question that what format does Google ...
zhtluo's user avatar
  • 41
1 vote
0 answers
36 views

Merging layers of multiple SVG files into one using Python

I currently have some code that combines SVG files into one combined svg file. My problem is that these SVG files have layers/groups and nested sublayers/subgroups in them. At the moment it just ...
muckyu's user avatar
  • 11
-1 votes
1 answer
25 views

Android Studio Vector Asset: Error while parsing ****.svg- Not a proper SVG file

When I try to import my SVG through Android Studio, I get this error: Error while parsing image.svg - Not a proper SVG file Where can I find more information about what actually went wrong? I've tried ...
VIN's user avatar
  • 6,396
0 votes
0 answers
56 views

Animated svg in Flutter

I have tried to render an animated SVG image in my Flutter application, but unfortunately, I couldn't achieve it. Since mostly static SVG images can be rendered using packages like flutter_svg, etc ...
Dharanidharan's user avatar
0 votes
1 answer
22 views

What image synthesis techniques does the term "rendering" apply to?

I am a little (much) confused about the term "rendering". My understanding is that it should apply to every process of creating an image - of whatever type, i.e. raster image/vector image/...
wombat's user avatar
  • 3
0 votes
0 answers
26 views

iOS vector images (PDF) displaying issue

I stuck with a strange iOS vector image issue - i've got an image in pdf format as a vector graphics. All was good during Xcode local dev builds, but suddenly build from Xcode Cloud show me next: some ...
sacred0x01's user avatar
-1 votes
1 answer
46 views

How to draw roof plan layout without any API

I'm trying to draw roof plan layout with only lines is there any logic or mathematical calculations needed to draw roof plan without any software only with code,below is the example
Veeresh Huvinahalli's user avatar
0 votes
0 answers
18 views

Looping animated vector drawable with multiple objectAnimator

I created an animated vector drawable to use in Splash Screen API. I need to load data while splash screen is playing. However, sometimes data is loading slowly and I need to repeat splash screen ...
VeceluXa's user avatar
0 votes
1 answer
25 views

Unity Generate waypoints list from a svg stroke?

I have some simple stroke drawings (e.g. circle, loop shape…) exported as svg file. I'm able to import the svg into Unity as Vector Sprite. Now I want to generate a list of waypoints based on that ...
Thien Nguyen's user avatar
1 vote
0 answers
35 views

MSO Conditional statments not working for background color

Currently I'm creating an email template for a company. The header that they are using isn't working in Microsoft Outlook. The background color isn't appearing. What should I do for this situation? So ...
Dilion Smith's user avatar
0 votes
0 answers
21 views

Paperjs split line segments

I am using paperjs and now have a need to do vector segmentation of freely drawn line segments. Specifically, it has a function similar to erasing, and the eraser itself has a volume. Then the ...
Swen's user avatar
  • 1
0 votes
0 answers
58 views

convert a svg to a "d=" </path

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools --> <svg width=...
makuru's user avatar
  • 1
1 vote
0 answers
147 views

How to convert WMF/EMF to PNG/JPEG in Python?

I need to convert a .wmf file to a .png format. I can't use libraries under the *GPL license. Solutions that use external dependencies (such as inkscape or libreoffice in a subprocess) are also not ...
Meetinger's user avatar
  • 165
1 vote
0 answers
45 views

Position vector into global world position vector using a camera

I am programming a 2d rendering engine with opengl, imgui and c++. The problem is to turn my mouse position into global world position using a camera. This is my current code inside my ...
a coder's user avatar
  • 11
0 votes
1 answer
50 views

EasySVG library php addText function problems with locating the text

i have misunderstanding about locating the text in svg file via EasySVG. I have an image in svg format 1200x1400px. I need to put the text to place by setting coordinates. require '../../lib/easysvg/...
Vadim Gerich's user avatar
1 vote
2 answers
48 views

I want to plot the route of a vector in a Lindenmayer system. How do I apply function to vector and get positions to plot?

This is my first question on stack overflow. I'm working on a script to plot a Lindenmayer-system. I already figured out how to do it by using the turtle package, but I would like to do it using ...
jaquesnado's user avatar
1 vote
1 answer
68 views

Pixels shown when saving colormap as vector graphics

I'm plotting (using pcolormesh) some colourmap figures to be added to my report written in Latex. I hope to save the figure as pdf so that I could use vector graphics in my report and Latex is happy ...
L L's user avatar
  • 31
1 vote
1 answer
75 views

Java: Insert a JFreeChart graphic into a powerPoint (pptx) as a vectorGraphic

I am generating graphs which I have to export into a powerPoint. I figured out how to convert the graph into a png and insert it into the powerPoint. However this is not ideal, if you want to zoom ...
valenzio's user avatar
  • 773
0 votes
0 answers
64 views

Using clipper2lib to offset a path in only one direction

I am using the c# implementation of clipper2lib in Unity to offset an open path: I want it to offset only in one direction, as in this image I edited in gimp: Ideally the first and last points in the ...
arcadeperfect's user avatar
0 votes
0 answers
21 views

How to use the canvas scale method in javascript with the implementation a coodinates remaping

I have a simple HTML canvas and a JavaScript that draws something on it. The problem is that, I implemented a remapping function that converts xOy orthogonal coordinates system to screen coordinates ...
Bogdan's user avatar
  • 33
2 votes
2 answers
87 views

Reverse Bresenham algorithm? How to convert array of drawn pixels into coordinates

Does there exist an algorithm that can analyze an array of pixel coordinates, and return an array of line coordinates that, when drawn using Bresenham's algorithm, would generate lines that cover the ...
Kirkman14's user avatar
  • 1,516
0 votes
1 answer
85 views

Semi circle with rounded lines with CSS or SVG

I need semicircle merged with two lines with rounded corners, something like image. My attempt: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"> <path style="fill: rgb(...
NeDark's user avatar
  • 1,212
0 votes
1 answer
107 views

How to make this simple figure to an SVG xml path?

In the last two days I'm trying to recreate this icon into an svg which I got only as an image. I'm really new to SVG coding. I tried to code it, but this is all what I got: <svg width="100&...
Rafael's user avatar
  • 13
0 votes
0 answers
20 views

Showing features of water-bounds based on area size attribute Mapboxgl

I am using Mapboxgl style to show my map and I need to set minzoom on features on a layer based on their calculated area attribute. For instance a derived and briefed tiny example from a layer below: {...
herco0l's user avatar
  • 21
0 votes
0 answers
66 views

Subtracting Line from Polygon (Clipper)

I'd like to clip a Line (open path) from a user-defined Polygon (rectangle, but can also be more complex polygon with holes) using js-angusj-clipper. Here's what I tried, and I would much appreciate ...
Aerodynamic's user avatar
0 votes
1 answer
39 views

In a drawing app based on vectors, how could you calculate all distinct closed regions when the user adds a freehand path to the drawing?

I'm looking to implement something similar to how Flash drawing worked. As follows: The user uses the freehand drawing tool to draw an arbitrary path. On finish of each path, the app calculates all ...
Jason Boyd's user avatar
  • 1,202
1 vote
0 answers
28 views

Stop the svg animation on a certain frame

I have an svg animation file. I want to stop this animation at a certain frame, for example frame 3. How to do it?
senops's user avatar
  • 31
-1 votes
1 answer
74 views

Subpixel accuracy when drawing vector graphics in Qt?

I have written a small test script in Python and PySide6 to test the vector graphics capabilities of Qt, in particular the accuracy when it comes to the exact shapes and positions of the drawn figures....
HelloGoodbye's user avatar
  • 3,644
0 votes
1 answer
71 views

Can you help me draw my 3D model of a chain to a specific direction?

With the code below I created a function to draw a 3D chain model in C# using the helix toolkit. This works exactly how I wanted to but... now I'm breaking my head around a good approach to draw the ...
jaapie's user avatar
  • 25
0 votes
0 answers
12 views

Rendering finer-sampled paths in Matplotlib

I'm trying to generate high-quality figures for a scientific publication, and in that process I sometimes need to generate small figure insets. I wanted to set the figure size using matplotlib such ...
Dylan Young's user avatar
0 votes
0 answers
153 views

How to convert SVG format to DWG format in .net Core

I am using .NET Core Application and My requirement is to convert DWG to SVG and SVG to DWG formats. I have converted DWG format to SVG format using Aspose.CAD library successfully as below. // Load ...
SAREKA AVINASH's user avatar
0 votes
1 answer
91 views

Crop large GeoJson layer using a standard machine

I need to extract a portion of a large GeoJson layer. I've tried multiple times with QGis on a 16Gb Ram intel i7 11th gen processor with no result. After about one hour if the program does not crash, ...
Caserio's user avatar
  • 472
0 votes
1 answer
91 views

Is it possible to have pixel hinting on vector graphics of an unknown size on a webpage?

Glyphs in typefaces for screens often use hinting to align the shapes with the screen pixels so the result has sharp edges. Could I do something similar with arbitrary vector graphics on a webpage? I ...
matj1's user avatar
  • 158
5 votes
0 answers
234 views

How to geometrically project 3D xyz vectors onto a plane orthogonal to the surface normals of a triangulated surface? R

I'm solving an equation with OLS which returns a timing point on an x/y/z surface mesh. I can solve for speed and directionality per the method outlined below. The problem is, my vectors are not ...
myfatson's user avatar
  • 354
0 votes
0 answers
69 views

Is there a way to extract and/or translate summary.ordisurf output to view the relationship with each ordination axis in R?

I have a question regarding plotting and interpreting the relationship between continuous environmental variables to an NMDS ordination of species abundances using R. This is a programming follow-up ...
theforestecologist's user avatar
0 votes
0 answers
28 views

Error in .checkXYnames(colnames(x)) : vectlongitude/latitude in the wrong order

I have a vector and a raster loaded. the points all lie within the raster. However, I get a en error when I run the Hiking function. enter image description here enter image description here enter ...
Aaron's user avatar
  • 11
1 vote
0 answers
92 views

How to reuse a group and/or path in android vector drawable

I have the following vector drawable code <vector android:name="vector" android:width="9dp" android:height="16dp" ...
K-Galalem's user avatar
  • 310
0 votes
1 answer
124 views

OpenGL Drawing 2 vectors with a given angle between them

I'm trying to draw in OpenGL 2 vectors with a given angle (in radians) between them, something like this: I managed to draw the vectors but I'm not sure how to place them at the specific angle: ...
Paul C's user avatar
  • 27
1 vote
1 answer
80 views

Is there a way to export a line that was drawn on a chart to an EMF file in Winforms?

I'm drawing some data using Winforms (with a C# solution). I plot error bars using chart series (with the chart.Series[item].Points.AddXY() method). However, I link the error bars' middle points with ...
Gautzilla's user avatar
1 vote
0 answers
60 views

Android Vector Drawable with ImageView: the image is being cutted at the bottom

I have the following svg (vector file): <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="18dp" android:height="3dp" ...
Hhry's user avatar
  • 823
0 votes
0 answers
36 views

How to segment the Streamslice image of Gradient Vector Field?

0enter image description here Plot the figure from the vector data with streamslice function of it, now I have tried the trajectory of streamslice figure but could not get any result of it. figure; [...
suman sharma's user avatar
1 vote
1 answer
64 views

Vector field with numpy and mathplotlib

I know how to generate a vector field in all plane, but know I'm trying to create the vector just in some specific line, my code is import numpy as np import matplotlib.pyplot as plt x = np.linspace(-...
Emanuel Dias's user avatar
0 votes
1 answer
42 views

How to avoid blank spaces between bars which are plotted next to each other when exporting as SVG from matplotlib?

I am plotting with matplolib a bar chart, where the bars are next to each other without a space in between. However, when exporting as .svg blank (white) spaces between the bars are visible. bar chart ...
tofri's user avatar
  • 43
0 votes
0 answers
76 views

Rotate vector to new base vector

In raycaster I am developing I am trying to implement hemisphere random sampling, with option to rotate hemisphere to direction and then take random point. First version worked fine because sampling ...
Nogare's user avatar
  • 98
0 votes
0 answers
223 views

Determination of Yaw, Pitch, Roll with Vector-calculation

well I've got following understanding problems: I've been using Rodriguez calculation formula in Matlab(for testing purposes, bc I can plot with quiver3 vectors) for rotating vectors from a starting ...
Isaac Yuki's user avatar
2 votes
2 answers
353 views

How to render math symbols as text in SVG/EPS/PDF images?

When creating graphs using, for instance, Python. It is possible to save these figures as vector graphics (SVG, EPS, PDF) and the text is rendered separately. This makes it possible to select or ...
Abe Brandsma's user avatar
0 votes
0 answers
65 views

What is the best way to represent a large number of dots in SVG?

I am working on a program that generates crosshatched images and now stippled images as SVG from raster input. With stippling however, representing each dot as a filled circle has made it such that ...
jwezorek's user avatar
  • 8,636
0 votes
0 answers
769 views

Why is it so hard to extract vector graphics from PDF?

There are many tools to extract raster graphics from PDF files like pdfimages. Raster graphics are defined a dictionary of type XObject with subtype Image, a filter and a stream with the data. This ...
bananaconda's user avatar
2 votes
1 answer
106 views

Convert handwritten input to a collection of geometry on a canvas

I am developing a Windows app that runs on computers with a pen input. I have a canvas object that receives an event every time the pen has moved to know where exactly it is on the canvas, the ...
frogstair's user avatar
  • 444
-2 votes
1 answer
154 views

SVG: generate a grid with random fill colour for each cell/rect?

Is there a way to generate an SVG grid with specified columns/rows and give each cell a different fill colour?
Pequod's user avatar
  • 13

1
2 3 4 5
23