vector-graphics

Algorithm to Fill In a Closed 2D Curve [closed]

橙三吉。 提交于 2021-02-07 03:52:35
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . Improve this question I need to find a way of drawing the inside of a closed 2D curve. This curve is actually created using a bicubic Bezier curve, but that's not important I believe. At the moment there should be no "holes" within the drawn shape. So it will just be totally filled in. It seems

Algorithm to Fill In a Closed 2D Curve [closed]

半城伤御伤魂 提交于 2021-02-07 03:47:43
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . Improve this question I need to find a way of drawing the inside of a closed 2D curve. This curve is actually created using a bicubic Bezier curve, but that's not important I believe. At the moment there should be no "holes" within the drawn shape. So it will just be totally filled in. It seems

Algorithm to Fill In a Closed 2D Curve [closed]

懵懂的女人 提交于 2021-02-07 03:46:27
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . Improve this question I need to find a way of drawing the inside of a closed 2D curve. This curve is actually created using a bicubic Bezier curve, but that's not important I believe. At the moment there should be no "holes" within the drawn shape. So it will just be totally filled in. It seems

Generate a “pieslice” in C without using the pieslice() of graphics.h

守給你的承諾、 提交于 2021-01-28 02:07:46
问题 In the BGI library's "graphics.h" header there is a function pieslice in that header file,its syntax is: #include <graphics.h> void pieslice(int x, int y, int stangle, int endangle, int radius); [x,y are the center of the circle,stangle and endangle are the starting and end angles respectively] Can we make a pieslice in C/C++ without using this in-built function of the BGI library.Please help. Tried making it with the help of the lines and mid-point circle generation algorithms. My code so

Xcode: Vector images from PDF bad quality

℡╲_俬逩灬. 提交于 2020-12-30 04:54:41
问题 for my iOS Swift project I use vectorized pdf files from which Xcode renders the @1x, @2x, @3x images. When I compare the quality of the images generated from PDF with normal PNG images of the same size I see a big difference in the quality between them. Theoretically the quality of the first row and the third row in the following picture should be the same, because a 108x80 image should be rendered and used from my 54x40 PDF on my iPhone 6 with a normal retina display. Unfortunately the

ps2pdf: preserve page size

老子叫甜甜 提交于 2020-12-01 09:32:49
问题 I have myfile.ps with a vector image included. But when I run ps2pdf myfile.ps it seems that the output page size is A4: the vector image is too large and become cut away, so about one inch is lost. The following pseudo-header is printed in the output PDF file, in addition to the original vector image: PLOT SIZE:8.02x8.62Inches Magnification:7354.21X Is there any option or any way to convert the PS file to a PDF preserving the original paper size? 回答1: I doubt your quoted 2 lines are really