Format plików SVG

From FreeCAD Documentation
Revision as of 18:35, 16 June 2020 by Kaktus (talk | contribs) (Created page with "==Użycie==")

Opis

Scalable Vector Graphics (SVG) jest typem wektorowego formatu obrazu dla grafiki dwuwymiarowej.

Formaty wektorowe, takie jak SVG, są bardzo przydatne w programach do rysowania technicznego, takich jak FreeCAD, ponieważ obraz SVG może być skalowany do dowolnego rozmiaru bez utraty jego kształtu lub ilości szczegółów. SVG można przeskalować do dowolnej wymaganej rozdzielczości i konwertować do formatów bitmapowych, takich jak PNG lub JPEG, w celu drukowania.

Obraz SVG jest opisany w języku XML, co oznacza, że w celu dokonania zmian można go otwierać i edytować za pomocą prostego edytora tekstu. Ze względu na swój tekstowy charakter, plik może być również łatwo przeszukiwany, indeksowany i kompresowany. Ten język znaczników SVG jest otwartym standardem opracowanym przez World Wide Web Consortium (W3C) od 1999 roku. Oznacza to, że plik SVG powinien być czytany i interpretowany w ten sam sposób przez zgodne przeglądarki i aplikacje rysunkowe.

Użycie

FreeCAD can read and export SVG graphics using the Draft SVG function from the Draft Workbench. SVG files are used for many things, including symbols and icons on the graphical user interface, and for templates.

For example, the TechDraw workbench templates can be created as SVG files with some editable text fields that the user can fill in.

FreeCAD is primarily a 3D modeling application, and thus doesn't have many 2D drawing tools, which are mostly included in the Draft and Sketcher workbenches. To exclusively create 2D shapes, and produce SVG files, there are alternative programs like Inkscape.