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.
vector-graphics
1,148
questions
1
vote
0
answers
33
views
How to make take-vector-screenshot work with PyCharm (under Ubuntu 22.04)?
My goal is to take vector screenshots of my Python development IDE.
I am using PyCharm community edition under Ubuntu 22.04.
I have the package gtk-vector-screenshot installed (see https://launchpad....
5
votes
1
answer
117
views
How to find the greatest possible euclidean distance we can achieve by moving using given set of vectors
That's a problem from Polish Olympiad in Informatics, called Pionek (PIO).
Given a set of not unique vectors, find the greatest possible euclidean distance in reference to (0,0) point you can achieve ...
0
votes
0
answers
51
views
SVG Path: Have a non-scaling cruve with scaling lines
As usual, the question indicated as a duplicate has outdated or incoherent answers
This question is about SVGs
I'm not interested by "hacks" with box shadows or pseudo elements, they ...
0
votes
0
answers
43
views
ERROR org.geoserver.platform.ServiceException: Creating maps using application/vnd.mapbox-vector-tile is not allowed
After installing tiling vectortiles plugin to geoserver .2.25 we have got an error
08 Apr 15:29:48 ERROR [geowebcache.GeoWebCacheDispatcher] - Problem communicating with GeoServer http://geo.server....
0
votes
1
answer
62
views
Replacing raster images in a PDF with vector images
I'm looking to do the exact opposite of what this person wanted to do: Replacing vector images in a PDF with raster images
In other words, I want to take pdfs with a mix of raster and vector images ...
0
votes
0
answers
81
views
Generating random SVG arrow shapes
So I have a task, which intends to generate random SVG images of curved entangled arrows.
Here are few examples of the expected output:
Example 1
Example 2
Example 3
There are few main requirements:
...
0
votes
1
answer
99
views
Issues Automating White Removal from Color Images Trace with Custom Preset in Illustrator with Adobe Bridge or New Script
I am trying to automate the process of image tracing images in Illustrator. I have a good system with black and white images where I can create an action to trace, save as SVG and remove white after ...
0
votes
0
answers
81
views
Difficulties with understanding the SVG spec's description of the "vector-effect" attribute
I'm having some trouble understanding the information that's being conveyed in the SVG specification's description of vector effects. Specifically, the text describing the "viewport" and &...
0
votes
2
answers
88
views
Is there an equivalent to the vector-effect property that can be applied to the SVG itself rather than each individual path?
I am showing maps of US state counties via SVG. The issue is that I want each state to be displayed at relatively the same size and what ends up happening is that the stroke-width ends up looking much ...
1
vote
2
answers
213
views
Extracting vector line segments from an image
I'm trying to find the edges on satellite imagery. While I've tried using canny edge detection, I've found much better results by passing the imagery through a structured random forests model ...
0
votes
1
answer
202
views
How to Export OSM Maps / Plots Into Vector Graphics Using Python Plotly
Taking this example from the manual,
import pandas as pd
us_cities = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/us-cities-top-1k.csv")
import plotly.express as px
...
0
votes
5
answers
298
views
Simplify any SVG path to create a solid black shape (UPDATED)
Is it possible to transform any SVG into a solid black shape in an automated way (in javascript or otherwise) by simplifying the path?
Is there a library to do this, or is there another way?
Let's ...
0
votes
1
answer
84
views
Vector rotation of text in a given font and rendering it (in Python)
I want to write a program that I can give a font-path, a string and a rotation-angle, which then renders the (vectorially) rotated text to a png.
I have gone through several libraries, such as skia, ...
1
vote
1
answer
74
views
SVG Clip Path Behavior under Translate Transforms
I am seeking the wisdom of the StackOverflow community to clarify my understanding of the clip-path feature in the SVG 1.1 specifications, particularly under multiple translate transformations.
I have ...
0
votes
1
answer
98
views
How to calculate if a triangle is back-facing or front facing in Vulkan
In this page:
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFrontFace.html
They give this equation:
How would you apply that formula for example to a triangle with these ...
0
votes
0
answers
31
views
What are the advantages of embedding SVG as an <img> element instead of as an <image> embedded in SVG? [duplicate]
Let's assume I have an SVG file here that is to be embedded in the HTML of a website (not inline!).
Obviously there are two common ways to do this:
Directly as <img> tag:
<img alt="&...
2
votes
1
answer
137
views
When to overload an operator in C++ as a member of a user-defined data structure and when not? I am completely lost
For any of you who can help explain to me when and when not to overload an operator as a member of a class or struct for example or not as a member, like global one.
The thing is that I am learning ...
0
votes
0
answers
42
views
Issue with mathematica vector file
Hi I am using Mathematica student versions to draw some 3D crystal structures.
From there I want to save the images as vector files (.eps or .pdf) and later edit those files in Adobe Illustrator or ...
1
vote
0
answers
55
views
How might I get information (specifically, area) about vector shapes using Python?
I'll cut the preamble.
In a perfect world, I'd have a script with which I can parse a PDF, grab all vector shapes of a given description (stroke colour would be ideal in this scenario but I may be ...
0
votes
0
answers
96
views
Coordinate System Transformation and implementation
I am attempting to read analysis results from an output file generated by OOFEM (analysis engine) and then to apply the deflections read from the file onto my model using a combination of C# and VB....
2
votes
1
answer
95
views
Plot Lines dissapear when saving MATLAB figure as svg vector image
I am creating a plot in matlab with a grid, when I try to save it as a vector image the plot lines dissapear. Any idea how to solve this?
to save I am using
print(gcf,'-vector','-dsvg',['Page1Vector','...
1
vote
0
answers
154
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 ...
-1
votes
1
answer
130
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 ...
0
votes
0
answers
416
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 ...
0
votes
1
answer
52
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/...
-1
votes
1
answer
70
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
0
votes
1
answer
69
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 ...
1
vote
0
answers
126
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 ...
0
votes
0
answers
265
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=...
2
votes
0
answers
583
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 ...
2
votes
0
answers
59
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 ...
0
votes
1
answer
69
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/...
1
vote
2
answers
51
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 ...
1
vote
1
answer
101
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 ...
1
vote
1
answer
135
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 ...
2
votes
2
answers
254
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 ...
0
votes
1
answer
103
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(...
0
votes
1
answer
274
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&...
0
votes
1
answer
41
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 ...
1
vote
0
answers
32
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?
-1
votes
1
answer
136
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....
0
votes
1
answer
102
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 ...
0
votes
1
answer
152
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, ...
0
votes
1
answer
258
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 ...
5
votes
0
answers
249
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 ...
0
votes
0
answers
130
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 ...
0
votes
0
answers
42
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 ...
1
vote
0
answers
153
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"
...
0
votes
1
answer
205
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:
...
1
vote
1
answer
136
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 ...