Inkscape
Vector Graphics Editor
|
Namespaces | |
namespace | Bitmap |
namespace | Filter |
namespace | PdfBuilder |
Classes | |
struct | bitmap_t |
class | BlurEdge |
Implementation class of the GIMP gradient plugin. More... | |
class | CairoEpsOutput |
struct | CairoGlyphInfo |
class | CairoPsOutput |
class | CairoRenderContext |
class | CairoRenderer |
class | CairoRendererPdfOutput |
struct | CairoRenderState |
class | CdrInput |
class | Emf |
struct | EMF_CALLBACK_DATA |
struct | EMF_DEVICE_CONTEXT |
struct | EMF_OBJECT |
struct | EMF_STRINGS |
struct | FontfixParams |
class | GdkpixbufInput |
class | Gif |
class | GimpGrad |
Implementation class of the GIMP gradient plugin. More... | |
class | GradientInfo |
class | GradientStop |
class | Grid |
Create a grid. More... | |
class | ImageResolution |
class | LatexOutput |
class | LaTeXTextRenderer |
struct | MEMPNG |
class | Metafile |
class | OdfOutput |
OpenDocument <drawing> input and output. More... | |
class | PdfImportDialog |
PDF import using libpoppler. More... | |
class | PdfInput |
struct | PDFOptions |
class | PdfOutput |
struct | pixel_t |
class | PngOutput |
class | PovOutput |
Output bezier splines in POVRay format. More... | |
class | PrintEmf |
class | PrintLatex |
class | PrintMetafile |
class | PrintWmf |
class | RvngImportDialog |
class | StyleInfo |
class | StyleMemory |
class | Svg |
class | SvgBuilder |
Builds the inner SVG representation using libpoppler from the calls of PdfParser. More... | |
struct | SvgGlyph |
Holds information about glyphs added by PdfParser which haven't been added to the document yet. More... | |
class | Svgz |
class | TemplateBase |
class | TemplateFromFile |
class | TemplateOther |
class | TemplatePaper |
class | TemplatePresetFile |
class | TemplateScreen |
class | TemplateSocial |
class | TemplateVideo |
class | VsdInput |
class | Wmf |
struct | WMF_CALLBACK_DATA |
struct | WMF_DEVICE_CONTEXT |
struct | WMF_OBJECT |
struct | WMF_STRINGS |
class | WpgInput |
Typedefs | |
using | PEMF_CALLBACK_DATA = EMF_CALLBACK_DATA * |
using | PMEMPNG = MEMPNG * |
typedef Inkscape::IO::BufferOutputStream | BufferOutputStream |
typedef Inkscape::IO::OutputStreamWriter | OutputStreamWriter |
typedef Inkscape::IO::StringOutputStream | StringOutputStream |
typedef Inkscape::IO::Writer | Writer |
using | StyleMap = std::map< SPAttr, std::string > |
using | PWMF_CALLBACK_DATA = WMF_CALLBACK_DATA * |
Enumerations | |
enum | MFDrawMode { DRAW_PAINT , DRAW_PATTERN , DRAW_IMAGE , DRAW_LINEAR_GRADIENT , DRAW_RADIAL_GRADIENT } |
Functions | |
static bool | ps_print_document_to_file (SPDocument *doc, gchar const *filename, unsigned int level, bool texttopath, bool omittext, bool filtertobitmap, int resolution, bool eps=false) |
static cairo_status_t | _write_callback (void *closure, const unsigned char *data, unsigned int length) |
static bool | pdf_render_document_to_file (SPDocument *doc, gchar const *filename, unsigned int level, PDFOptions flags, int resolution) |
static void | sp_item_invoke_render (SPItem const *item, CairoRenderContext *ctx, SPItem const *origin=nullptr, SPPage const *page=nullptr) |
static void | sp_group_render (SPGroup const *group, CairoRenderContext *ctx, SPItem const *origin=nullptr, SPPage const *page=nullptr) |
static void | sp_anchor_render (SPAnchor const *a, CairoRenderContext *ctx, SPItem const *origin, SPPage const *page) |
static void | sp_use_render (SPUse const *use, CairoRenderContext *ctx, SPPage const *page=nullptr) |
static void | sp_shape_render (SPShape const *shape, CairoRenderContext *ctx, SPItem const *origin=nullptr) |
static void | sp_text_render (SPText const *text, CairoRenderContext *ctx) |
static void | sp_flowtext_render (SPFlowtext const *flowtext, CairoRenderContext *ctx) |
static void | sp_image_render (SPImage const *image, CairoRenderContext *ctx) |
static void | sp_symbol_render (SPSymbol const *symbol, CairoRenderContext *ctx, SPItem const *origin, SPPage const *page) |
static void | sp_asbitmap_render (SPItem const *item, CairoRenderContext *ctx, SPPage const *page) |
This function converts the item to a raster image and includes the image into the cairo renderer. | |
static Geom::Point | compute_final_page_dimensions (Geom::Rect const &page_rect) |
Compute the final page dimensions in the resulting PS or PDF. | |
static void | sp_root_render (SPRoot const *root, CairoRenderContext *ctx) |
void | calculatePreserveAspectRatio (unsigned int aspect_align, unsigned int aspect_clip, double vp_width, double vp_height, double *x, double *y, double *width, double *height) |
U_COLORREF | trivertex_to_colorref (U_TRIVERTEX tv) |
static void | append_css_num (Glib::ustring &str, double const num) |
static Glib::ustring | stop_svg (Color const &in_color, double const location) |
A function to turn a color into a gradient stop. | |
static bool | haspngheader (FILE *fp) |
static double | exifDouble (ExifEntry *entry, ExifByteOrder byte_order) |
static void | irjfif_error_exit (j_common_ptr cinfo) |
static void | irjfif_emit_message (j_common_ptr, int) |
static void | irjfif_output_message (j_common_ptr) |
static void | irjfif_format_message (j_common_ptr, char *) |
static void | irjfif_reset (j_common_ptr) |
bool | latex_render_document_text_to_file (SPDocument *doc, gchar const *filename, bool pdflatex) |
This method is called by the PDF, EPS and PS output extensions. | |
U_COLORREF | toColorRef (std::optional< Colors::Color > color) |
static std::map< Glib::ustring, FontfixParams > const & | get_ppt_fixable_fonts () |
float | opweight (float v1, float v2, float op) |
static double | svd_hypot (double a, double b) |
static Glib::ustring | getAttribute (Inkscape::XML::Node *node, char const *attrName) |
Get the value of a node/attribute pair. | |
static Glib::ustring | formatTransform (Geom::Affine &tf) |
static Geom::Affine | getODFTransform (const SPItem *item) |
Get the general transform from SVG pixels to ODF cm. | |
static Geom::OptRect | getODFBoundingBox (const SPItem *item) |
Get the bounding box of an item, as mapped onto an ODF document, in cm. | |
static Geom::Affine | getODFItemTransform (const SPItem *item) |
Get the transform for an item, including parents, but without root viewBox transformation. | |
static void | analyzeTransform (Geom::Affine &tf, double &rotate, double &, double &, double &xscale, double &yscale) |
Get some fun facts from the transform. | |
static void | gatherText (Inkscape::XML::Node *node, Glib::ustring &buf) |
static int | writePath (Writer &outs, Geom::PathVector const &pathv, Geom::Affine const &tf, double xoff, double yoff) |
Writes an SVG path as an ODF <draw:path> and returns the number of points written. | |
static void | copy_cairo_surface_to_pixbuf (cairo_surface_t *surface, GdkPixbuf *pixbuf) |
Copies image data from a Cairo surface to a pixbuf. | |
static cairo_status_t | _write_ustring_cb (void *closure, const unsigned char *data, unsigned int length) |
helper method | |
static gchar * | svgConvertRGBToText (double r, double g, double b) |
static std::string | svgConvertGfxRGB (GfxRGB *color) |
static void | svgSetTransform (Inkscape::XML::Node *node, Geom::Affine matrix) |
static gchar * | svgInterpretPath (_POPPLER_CONST_83 GfxPath *path) |
Generates a SVG path string from poppler's data structure. | |
static bool | svgGetShadingColor (GfxShading *shading, double offset, GfxColor *result) |
void | png_write_vector (png_structp png_ptr, png_bytep data, png_size_t length) |
Helper functions for supporting direct PNG output into a base64 encoded stream. | |
static void | err (const char *fmt,...) |
static double | effective_opacity (SPItem const *item) |
static PovOutput::String | dstr (double d) |
We want to control floating output format. | |
std::unique_ptr< SPDocument > | rvng_open (char const *uri, bool(*is_supported)(RVNGInputStream *), bool(*parse)(RVNGInputStream *, RVNGDrawingInterface *)) |
std::span< char const > | as_span (librevenge::RVNGString const &str) |
std::unique_ptr< SPDocument > | rvng_open (char const *uri, bool(*is_supported)(librevenge::RVNGInputStream *), bool(*parse)(librevenge::RVNGInputStream *, librevenge::RVNGDrawingInterface *)) |
static std::span< char const > | as_span (RVNGString const &str) |
Variables | |
static uint32_t | ICMmode = 0 |
static uint32_t | BLTmode = 0 |
constexpr float | faraway = 10000000 |
constexpr auto | EMF_MAX_DC = 128 |
static double | PX2WORLD |
static bool | FixPPTCharPos |
static bool | FixPPTDashLine |
static bool | FixPPTGrad2Polys |
static bool | FixPPTLinGrad |
static bool | FixPPTPatternAsHatch |
static bool | FixImageRot |
static EMFTRACK * | et = nullptr |
static EMFHANDLES * | eht = nullptr |
static char const | preamble [] |
static char const | postamble [] |
static bool | clipset = false |
static uint32_t | BLTmode = 0 |
constexpr auto | WMF_MAX_DC = 128 |
static double | PX2WORLD |
static bool | FixPPTCharPos |
static bool | FixPPTDashLine |
static bool | FixPPTGrad2Polys |
static bool | FixPPTPatternAsHatch |
static WMFTRACK * | wt = nullptr |
static WMFHANDLES * | wht = nullptr |
using Inkscape::Extension::Internal::PEMF_CALLBACK_DATA = typedef EMF_CALLBACK_DATA * |
Definition at line 163 of file emf-inout.h.
using Inkscape::Extension::Internal::PMEMPNG = typedef MEMPNG * |
Definition at line 67 of file metafile-inout.h.
using Inkscape::Extension::Internal::PWMF_CALLBACK_DATA = typedef WMF_CALLBACK_DATA * |
Definition at line 155 of file wmf-inout.h.
using Inkscape::Extension::Internal::StyleMap = typedef std::map<SPAttr, std::string> |
Definition at line 28 of file remember-styles.h.
Enumerator | |
---|---|
DRAW_PAINT | |
DRAW_PATTERN | |
DRAW_IMAGE | |
DRAW_LINEAR_GRADIENT | |
DRAW_RADIAL_GRADIENT |
Definition at line 39 of file metafile-print.h.
|
static |
Definition at line 1828 of file cairo-render-context.cpp.
References data.
Referenced by Inkscape::Extension::Internal::CairoRenderContext::setupSurface().
|
static |
helper method
Definition at line 575 of file pdf-input.cpp.
References data.
Referenced by Inkscape::Extension::Internal::PdfInput::open().
|
static |
Get some fun facts from the transform.
Definition at line 948 of file odf.cpp.
Referenced by Inkscape::Extension::Internal::OdfOutput::writeTree().
|
static |
Definition at line 42 of file gimpgrad.cpp.
References num, and Inkscape::CSSOStringStream::str().
Referenced by stop_svg().
|
inline |
Definition at line 25 of file rvng-import-dialog.h.
Referenced by Inkscape::Extension::Internal::RvngImportDialog::_setPreviewPage(), Inkscape::Extension::Internal::WpgInput::open(), and rvng_open().
|
static |
Definition at line 61 of file wpg-input.cpp.
void Inkscape::Extension::Internal::calculatePreserveAspectRatio | ( | unsigned int | aspect_align, |
unsigned int | aspect_clip, | ||
double | vp_width, | ||
double | vp_height, | ||
double * | x, | ||
double * | y, | ||
double * | width, | ||
double * | height | ||
) |
Definition at line 851 of file cairo-renderer.cpp.
References height, MAX, MIN, scale, SP_ASPECT_MEET, SP_ASPECT_NONE, SP_ASPECT_XMAX_YMAX, SP_ASPECT_XMAX_YMID, SP_ASPECT_XMAX_YMIN, SP_ASPECT_XMID_YMAX, SP_ASPECT_XMID_YMID, SP_ASPECT_XMID_YMIN, SP_ASPECT_XMIN_YMAX, SP_ASPECT_XMIN_YMID, SP_ASPECT_XMIN_YMIN, and width.
Referenced by sp_image_render(), and sp_symbol_render().
|
static |
Compute the final page dimensions in the resulting PS or PDF.
Cairo PS and PDF surfaces only work with integer dimensions, taking ceil() of the doubles passed as arguments. To work around this limitation, we want to "lie" about page dimensions.
-> If the page dimension is very very slightly larger than an integer (within an epsilon), we snap it to that integer. This can happen due to rounding errors in transforms. -> Otherwise, we round the page dimension up to the next integer.
Definition at line 158 of file cairo-renderer.cpp.
References Geom::GenericRect< C >::dimensions(), Geom::EPSILON, result, Geom::X, and Geom::Y.
Referenced by Inkscape::Extension::Internal::CairoRenderer::renderPage().
|
static |
Copies image data from a Cairo surface to a pixbuf.
Borrowed from libpoppler, from the file poppler-page.cc Copyright (C) 2005, Red Hat, Inc.
Definition at line 388 of file pdf-input.cpp.
References surface.
Referenced by Inkscape::Extension::Internal::PdfImportDialog::_drawFunc().
|
static |
We want to control floating output format.
Definition at line 112 of file pov-out.cpp.
Referenced by Inkscape::Extension::Internal::PovOutput::doCurve().
|
static |
Definition at line 76 of file pov-out.cpp.
References item, and SPObject::parent.
Referenced by Inkscape::Extension::Internal::PovOutput::doCurve().
|
static |
Definition at line 57 of file pov-out.cpp.
References fmt, va_end(), and va_start().
Referenced by Inkscape::Extension::Internal::TemplatePresetFile::_load_data(), Inkscape::Extension::Internal::PdfBuilder::DrawContext::clip_text_layout(), Inkscape::Extension::Internal::PovOutput::doCurve(), Inkscape::Extension::Internal::PdfBuilder::Document::get_font(), Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_text_layout(), Inkscape::Extension::Internal::ImageResolution::readmagick(), and Inkscape::Extension::Internal::PovOutput::saveDocument().
|
static |
Definition at line 163 of file image-resolution.cpp.
Referenced by Inkscape::Extension::Internal::ImageResolution::readexif().
|
static |
Definition at line 890 of file odf.cpp.
References Inkscape::IO::StringOutputStream::getString(), Geom::Affine::isIdentity(), and Inkscape::IO::BasicWriter::printf().
Referenced by Inkscape::Extension::Internal::OdfOutput::writeTree().
|
static |
Definition at line 971 of file odf.cpp.
References buf, child, Inkscape::XML::Node::content(), Inkscape::XML::Node::firstChild(), gatherText(), Inkscape::XML::Node::next(), node, Inkscape::XML::TEXT_NODE, and Inkscape::XML::Node::type().
Referenced by gatherText(), and Inkscape::Extension::Internal::OdfOutput::preprocess().
|
static |
Definition at line 44 of file metafile-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintMetafile::_lookup_ppt_fontfix().
|
static |
Get the value of a node/attribute pair.
Definition at line 880 of file odf.cpp.
References Inkscape::XML::Node::attribute(), and node.
Referenced by Inkscape::Extension::Internal::OdfOutput::preprocess(), and Inkscape::Extension::Internal::OdfOutput::writeTree().
|
static |
Get the bounding box of an item, as mapped onto an ODF document, in cm.
Definition at line 922 of file odf.cpp.
References SPItem::documentVisualBounds(), and item.
Referenced by Inkscape::Extension::Internal::OdfOutput::writeTree().
|
static |
Get the transform for an item, including parents, but without root viewBox transformation.
Definition at line 937 of file odf.cpp.
References SPViewBox::c2p, SPObject::document, SPDocument::getRoot(), SPItem::i2doc_affine(), Geom::Affine::inverse(), and item.
Referenced by Inkscape::Extension::Internal::OdfOutput::writeTree().
|
static |
Get the general transform from SVG pixels to ODF cm.
Definition at line 909 of file odf.cpp.
References SPItem::i2doc_affine(), and item.
Referenced by Inkscape::Extension::Internal::OdfOutput::writeTree().
|
static |
Definition at line 74 of file image-resolution.cpp.
Referenced by Inkscape::Extension::Internal::ImageResolution::readpng().
|
static |
Definition at line 309 of file image-resolution.cpp.
Referenced by Inkscape::Extension::Internal::ImageResolution::readjfif().
|
static |
Definition at line 305 of file image-resolution.cpp.
Referenced by Inkscape::Extension::Internal::ImageResolution::readjfif().
|
static |
Definition at line 315 of file image-resolution.cpp.
Referenced by Inkscape::Extension::Internal::ImageResolution::readjfif().
|
static |
Definition at line 312 of file image-resolution.cpp.
Referenced by Inkscape::Extension::Internal::ImageResolution::readjfif().
|
static |
Definition at line 318 of file image-resolution.cpp.
Referenced by Inkscape::Extension::Internal::ImageResolution::readjfif().
bool Inkscape::Extension::Internal::latex_render_document_text_to_file | ( | SPDocument * | doc, |
gchar const * | filename, | ||
bool | pdflatex | ||
) |
This method is called by the PDF, EPS and PS output extensions.
filename | This should be the filename without '_tex' extension to which the tex code should be written. Output goes to <filename>_tex, note the underscore instead of period. |
Definition at line 62 of file latex-text-renderer.cpp.
References SPDocument::ensureUpToDate(), SPDocument::getRoot(), Inkscape::Extension::Internal::LaTeXTextRenderer::renderItem(), root, Inkscape::Extension::Internal::LaTeXTextRenderer::setTargetFile(), and Inkscape::Extension::Internal::LaTeXTextRenderer::setupDocument().
Referenced by Inkscape::Extension::Internal::PdfOutput::save(), Inkscape::Extension::Internal::CairoPsOutput::save(), Inkscape::Extension::Internal::CairoRendererPdfOutput::save(), and Inkscape::Extension::Internal::CairoEpsOutput::save().
|
inline |
Definition at line 140 of file metafile-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintMetafile::avg_stop_color(), and Inkscape::Extension::Internal::PrintMetafile::weight_opacity().
|
static |
Definition at line 62 of file cairo-renderer-pdf-out.cpp.
References Inkscape::convert_text_to_curves(), Inkscape::Extension::Internal::CairoRenderer::createContext(), SPItem::display_key_new(), SPDocument::ensureUpToDate(), Inkscape::Extension::Internal::CairoRenderContext::finish(), SPDocument::getRoot(), Inkscape::Extension::Internal::PDFOptions::rasterize_filters, Inkscape::Extension::Internal::CairoRenderer::renderPages(), root, Inkscape::Extension::Internal::CairoRenderContext::setBitmapResolution(), Inkscape::Drawing::setExact(), Inkscape::Extension::Internal::CairoRenderContext::setFilterToBitmap(), Inkscape::Extension::Internal::CairoRenderContext::setOmitText(), Inkscape::Extension::Internal::CairoRenderContext::setPDFLevel(), Inkscape::Extension::Internal::CairoRenderContext::setPdfTarget(), Inkscape::Drawing::setRoot(), Inkscape::Extension::Internal::CairoRenderContext::setTextToPath(), Inkscape::Extension::Internal::CairoRenderer::setupDocument(), Inkscape::Extension::Internal::PDFOptions::stretch_to_fit, Inkscape::Extension::Internal::PDFOptions::text_to_latex, and Inkscape::Extension::Internal::PDFOptions::text_to_path.
Referenced by Inkscape::Extension::Internal::CairoRendererPdfOutput::save().
void Inkscape::Extension::Internal::png_write_vector | ( | png_structp | png_ptr, |
png_bytep | data, | ||
png_size_t | length | ||
) |
Helper functions for supporting direct PNG output into a base64 encoded stream.
Definition at line 2000 of file svg-builder.cpp.
References data.
Referenced by Inkscape::Extension::Internal::SvgBuilder::_createImage().
|
static |
Definition at line 65 of file cairo-ps-out.cpp.
References Inkscape::convert_text_to_curves(), Inkscape::Extension::Internal::CairoRenderer::createContext(), SPItem::display_key_new(), SPDocument::ensureUpToDate(), Inkscape::Extension::Internal::CairoRenderContext::finish(), SPDocument::getRoot(), Inkscape::Extension::Internal::CairoRenderer::renderPages(), root, Inkscape::Extension::Internal::CairoRenderContext::setBitmapResolution(), Inkscape::Extension::Internal::CairoRenderContext::setEPS(), Inkscape::Extension::Internal::CairoRenderContext::setFilterToBitmap(), Inkscape::Extension::Internal::CairoRenderContext::setOmitText(), Inkscape::Extension::Internal::CairoRenderContext::setPSLevel(), Inkscape::Extension::Internal::CairoRenderContext::setPsTarget(), Inkscape::Extension::Internal::CairoRenderContext::setTextToPath(), and Inkscape::Extension::Internal::CairoRenderer::setupDocument().
Referenced by Inkscape::Extension::Internal::CairoPsOutput::save(), and Inkscape::Extension::Internal::CairoEpsOutput::save().
std::unique_ptr< SPDocument > Inkscape::Extension::Internal::rvng_open | ( | char const * | uri, |
bool(*)(librevenge::RVNGInputStream *) | is_supported, | ||
bool(*)(librevenge::RVNGInputStream *, librevenge::RVNGDrawingInterface *) | parse | ||
) |
std::unique_ptr< SPDocument > Inkscape::Extension::Internal::rvng_open | ( | char const * | uri, |
bool(*)(RVNGInputStream *) | is_supported, | ||
bool(*)(RVNGInputStream *, RVNGDrawingInterface *) | parse | ||
) |
Definition at line 142 of file rvng-import-dialog.cpp.
References as_span(), SPDocument::createNewDocFromMem(), and Geom::GenericRect< Coord >::from_xywh().
Referenced by Inkscape::Extension::Internal::CdrInput::open(), and Inkscape::Extension::Internal::VsdInput::open().
|
static |
Definition at line 371 of file cairo-renderer.cpp.
References SPObject::children, Inkscape::Extension::Internal::CairoRenderContext::getRenderer(), Inkscape::Extension::Internal::CairoRenderContext::getTransform(), SPAnchor::href, item, SPAnchor::local_link, origin, page, Inkscape::Extension::Internal::CairoRenderer::renderItem(), Inkscape::Extension::Internal::CairoRenderContext::tagBegin(), Inkscape::Extension::Internal::CairoRenderContext::tagEnd(), and SPItem::visualBounds().
Referenced by sp_item_invoke_render().
|
static |
This function converts the item to a raster image and includes the image into the cairo renderer.
It is only used for filters and then only when rendering filters as bitmaps is requested.
@TODO reimplement the resolution stuff (WHY?)
@TODO reimplement the resolution stuff (WHY?)
Definition at line 463 of file cairo-renderer.cpp.
References Inkscape::Util::Quantity::convert(), SPObject::document, SPItem::documentVisualBounds(), Inkscape::Extension::Internal::CairoRenderContext::getBitmapResolution(), height, SPItem::i2doc_affine(), Geom::Affine::inverse(), item, page, SPDocument::preferredBounds(), Inkscape::Extension::Internal::CairoRenderContext::renderImage(), sp_generate_internal_bitmap(), SPObject::style, width, and Geom::X.
Referenced by Inkscape::Extension::Internal::CairoRenderer::_doRender().
|
static |
Definition at line 337 of file cairo-renderer.cpp.
References SPFlowtext::layout, and Inkscape::Text::Layout::showGlyphs().
Referenced by sp_item_invoke_render().
|
static |
Definition at line 297 of file cairo-renderer.cpp.
References SPObject::children, Inkscape::Extension::Internal::CairoRenderContext::getRenderer(), item, origin, page, and Inkscape::Extension::Internal::CairoRenderer::renderItem().
Referenced by sp_item_invoke_render(), sp_root_render(), and sp_symbol_render().
|
static |
Definition at line 342 of file cairo-renderer.cpp.
References Inkscape::Extension::Internal::CairoRenderContext::addClippingRect(), calculatePreserveAspectRatio(), Inkscape::Extension::Internal::CairoRenderContext::getCurrentState(), Inkscape::Extension::Internal::CairoRenderState::has_overflow, height, image, Inkscape::Extension::Internal::CairoRenderContext::renderImage(), SP_ASPECT_NONE, SP_ASPECT_SLICE, w, and width.
Referenced by sp_item_invoke_render().
|
static |
Definition at line 525 of file cairo-renderer.cpp.
References SPObject::DEPENDENT, Inkscape::Extension::Internal::CairoRenderContext::destBegin(), Inkscape::Extension::Internal::CairoRenderContext::destEnd(), SPObject::getId(), SPObject::getLinked(), image, item, origin, page, root, sp_anchor_render(), sp_flowtext_render(), sp_group_render(), sp_image_render(), sp_root_render(), sp_shape_render(), sp_symbol_render(), sp_text_render(), and sp_use_render().
Referenced by Inkscape::Extension::Internal::CairoRenderer::_doRender().
|
static |
Definition at line 446 of file cairo-renderer.cpp.
References Inkscape::Extension::Internal::CairoRenderContext::addClippingRect(), Inkscape::Extension::Internal::CairoRenderContext::getCurrentState(), Inkscape::Extension::Internal::CairoRenderState::has_overflow, Inkscape::Extension::Internal::CairoRenderContext::popState(), Inkscape::Extension::Internal::CairoRenderContext::pushState(), root, Inkscape::Extension::Internal::CairoRenderContext::setStateForItem(), sp_group_render(), and Inkscape::Extension::Internal::CairoRenderContext::transform().
Referenced by sp_item_invoke_render().
|
static |
Definition at line 234 of file cairo-renderer.cpp.
References SPShape::curve(), Geom::PathVector::empty(), Inkscape::Extension::Internal::CairoRenderContext::FILL_ONLY, Inkscape::Extension::Internal::CairoRenderContext::FILL_OVER_STROKE, SPItem::geometricBounds(), SPShape::get_markers(), SPCurve::get_pathvector(), Inkscape::Extension::Internal::CairoRenderContext::getRenderer(), has_stroke(), SPShape::hasMarkers(), origin, SPStyle::paint_order, Inkscape::Extension::Internal::CairoRenderer::renderItem(), Inkscape::Extension::Internal::CairoRenderContext::renderPathVector(), SP_CSS_PAINT_ORDER_FILL, SP_CSS_PAINT_ORDER_MARKER, SP_CSS_PAINT_ORDER_NORMAL, SP_CSS_PAINT_ORDER_STROKE, sp_item_first_item_child(), Inkscape::Extension::Internal::CairoRenderContext::STROKE_ONLY, Inkscape::Extension::Internal::CairoRenderContext::STROKE_OVER_FILL, SPStyle::stroke_width, and SPObject::style.
Referenced by sp_item_invoke_render().
|
static |
Definition at line 406 of file cairo-renderer.cpp.
References SPViewBox::aspect_align, SPViewBox::aspect_clip, SPViewBox::c2p, calculatePreserveAspectRatio(), SPObject::cloned, Geom::GenericRect< C >::height(), height, Geom::identity(), Geom::GenericRect< C >::left(), origin, page, Inkscape::Extension::Internal::CairoRenderContext::popState(), Inkscape::Extension::Internal::CairoRenderContext::pushState(), sp_group_render(), Geom::GenericRect< C >::top(), Inkscape::Extension::Internal::CairoRenderContext::transform(), SPViewBox::viewBox, Geom::GenericRect< C >::width(), and width.
Referenced by sp_item_invoke_render().
|
static |
Definition at line 332 of file cairo-renderer.cpp.
References SPText::layout, and Inkscape::Text::Layout::showGlyphs().
Referenced by sp_item_invoke_render().
|
static |
Definition at line 307 of file cairo-renderer.cpp.
References SVGLength::_set, SPUse::child, SVGLength::computed, Inkscape::Extension::Internal::CairoRenderContext::getRenderer(), page, Inkscape::Extension::Internal::CairoRenderContext::popState(), Inkscape::Extension::Internal::CairoRenderContext::pushState(), Inkscape::Extension::Internal::CairoRenderer::renderItem(), Inkscape::Extension::Internal::CairoRenderContext::transform(), SPDimensions::x, and SPDimensions::y.
Referenced by sp_item_invoke_render().
|
static |
A function to turn a color into a gradient stop.
in_color | The color for the stop |
location | Where the stop is placed in the gradient |
This function encapsulates all of the translation of the Color and the location into the gradient. It is really pretty simple except that the Color is in floats that are 0 to 1 and the SVG wants hex values from 0 to 255 for color. Otherwise mostly this is just turning the values into strings and returning it.
Definition at line 61 of file gimpgrad.cpp.
References append_css_num(), Inkscape::Colors::Color::converted(), and Inkscape::Colors::Color::getOpacity().
Referenced by Inkscape::Extension::Internal::GimpGrad::open().
|
static |
|
static |
Definition at line 394 of file svg-builder.cpp.
References svgConvertRGBToText().
Referenced by Inkscape::Extension::Internal::SvgBuilder::convertGfxColor().
|
static |
Definition at line 383 of file svg-builder.cpp.
References Inkscape::Filters::clamp(), and SP_COLOR_F_TO_U().
Referenced by svgConvertGfxRGB().
|
static |
Definition at line 1234 of file svg-builder.cpp.
References offset, and result.
Referenced by Inkscape::Extension::Internal::SvgBuilder::_addGradientStops().
|
static |
Generates a SVG path string from poppler's data structure.
Definition at line 448 of file svg-builder.cpp.
References Inkscape::SVG::PathString::c_str(), Inkscape::SVG::PathString::closePath(), Inkscape::SVG::PathString::curveTo(), Inkscape::SVG::PathString::lineTo(), and Inkscape::SVG::PathString::moveTo().
Referenced by Inkscape::Extension::Internal::SvgBuilder::_getClip(), Inkscape::Extension::Internal::SvgBuilder::_shouldClip(), Inkscape::Extension::Internal::SvgBuilder::addPath(), and Inkscape::Extension::Internal::SvgBuilder::addShadedFill().
|
static |
Definition at line 438 of file svg-builder.cpp.
References Inkscape::XML::Node::attribute(), node, Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), and sp_svg_transform_write().
Referenced by Inkscape::Extension::Internal::SvgBuilder::_createClip(), Inkscape::Extension::Internal::SvgBuilder::_flushText(), Inkscape::Extension::Internal::SvgBuilder::_getClip(), Inkscape::Extension::Internal::SvgBuilder::_setTransform(), and Inkscape::Extension::Internal::SvgBuilder::addShadedFill().
U_COLORREF Inkscape::Extension::Internal::toColorRef | ( | std::optional< Colors::Color > | color | ) |
Definition at line 34 of file metafile-print.cpp.
References c, and Inkscape::Colors::Space::RGB.
Referenced by Inkscape::Extension::Internal::PrintWmf::create_brush(), Inkscape::Extension::Internal::PrintWmf::create_pen(), Inkscape::Extension::Internal::PrintEmf::fill(), Inkscape::Extension::Internal::PrintWmf::fill(), Inkscape::Extension::Internal::PrintEmf::text(), and Inkscape::Extension::Internal::PrintWmf::text().
U_COLORREF Inkscape::Extension::Internal::trivertex_to_colorref | ( | U_TRIVERTEX | tv | ) |
Definition at line 619 of file emf-inout.cpp.
References U_TRIVERTEX::Alpha, U_COLORREF::Blue, U_TRIVERTEX::Blue, U_COLORREF::Green, U_TRIVERTEX::Green, U_COLORREF::Red, U_TRIVERTEX::Red, and U_COLORREF::Reserved.
Referenced by Inkscape::Extension::Internal::Emf::add_gradient(), and Inkscape::Extension::Internal::Emf::myEnhMetaFileProc().
|
static |
Writes an SVG path as an ODF <draw:path> and returns the number of points written.
Definition at line 1221 of file odf.cpp.
References is_straight_curve(), pathv_to_linear_and_cubic_beziers(), Inkscape::IO::Writer::printf(), Geom::X, and Geom::Y.
Referenced by Inkscape::Extension::Internal::OdfOutput::writeTree().
|
static |
Definition at line 61 of file emf-inout.cpp.
Referenced by Inkscape::Extension::Internal::Emf::myEnhMetaFileProc(), and Inkscape::Extension::Internal::Wmf::myMetaFileProc().
|
static |
Definition at line 59 of file wmf-inout.cpp.
|
static |
Definition at line 58 of file wmf-inout.cpp.
Referenced by Inkscape::Extension::Internal::Wmf::myMetaFileProc().
|
static |
Definition at line 80 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintEmf::create_brush(), Inkscape::Extension::Internal::PrintEmf::create_pen(), Inkscape::Extension::Internal::PrintEmf::destroy_brush(), Inkscape::Extension::Internal::PrintEmf::destroy_pen(), Inkscape::Extension::Internal::PrintEmf::finish(), Inkscape::Extension::Internal::PrintEmf::print_simple_shape(), and Inkscape::Extension::Internal::PrintEmf::text().
|
inlineconstexpr |
Definition at line 101 of file emf-inout.h.
Referenced by Inkscape::Extension::Internal::Emf::myEnhMetaFileProc(), and Inkscape::Extension::Internal::Emf::open().
|
static |
Definition at line 79 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintEmf::create_brush(), Inkscape::Extension::Internal::PrintEmf::create_pen(), Inkscape::Extension::Internal::PrintEmf::destroy_brush(), Inkscape::Extension::Internal::PrintEmf::destroy_pen(), Inkscape::Extension::Internal::PrintEmf::do_clip_if_present(), Inkscape::Extension::Internal::PrintEmf::draw_pathv_to_EMF(), Inkscape::Extension::Internal::PrintEmf::fill(), Inkscape::Extension::Internal::PrintEmf::finish(), Inkscape::Extension::Internal::PrintEmf::image(), Inkscape::Extension::Internal::PrintEmf::print_pathv(), Inkscape::Extension::Internal::PrintEmf::print_simple_shape(), Inkscape::Extension::Internal::PrintEmf::stroke(), and Inkscape::Extension::Internal::PrintEmf::text().
|
constexpr |
Definition at line 62 of file emf-inout.cpp.
Referenced by Inkscape::Extension::Internal::Emf::myEnhMetaFileProc(), Inkscape::Extension::Internal::Wmf::myMetaFileProc(), and Inkscape::Extension::Internal::Emf::snap_to_faraway_pair().
|
static |
Definition at line 78 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), and Inkscape::Extension::Internal::PrintEmf::image().
|
static |
Definition at line 78 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintWmf::begin(), Inkscape::Extension::Internal::PrintEmf::text(), and Inkscape::Extension::Internal::PrintWmf::text().
|
static |
Definition at line 75 of file wmf-print.cpp.
|
static |
Definition at line 78 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintWmf::begin(), Inkscape::Extension::Internal::PrintEmf::create_pen(), Inkscape::Extension::Internal::PrintWmf::create_pen(), Inkscape::Extension::Internal::PrintEmf::fill(), Inkscape::Extension::Internal::PrintWmf::fill(), Inkscape::Extension::Internal::PrintEmf::stroke(), and Inkscape::Extension::Internal::PrintWmf::stroke().
|
static |
Definition at line 75 of file wmf-print.cpp.
|
static |
Definition at line 78 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintWmf::begin(), Inkscape::Extension::Internal::PrintEmf::create_brush(), Inkscape::Extension::Internal::PrintWmf::create_brush(), and Inkscape::Extension::Internal::PrintEmf::fill().
|
static |
Definition at line 75 of file wmf-print.cpp.
|
static |
Definition at line 78 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintEmf::create_brush(), and Inkscape::Extension::Internal::PrintEmf::fill().
|
static |
Definition at line 78 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintWmf::begin(), Inkscape::Extension::Internal::PrintEmf::create_brush(), Inkscape::Extension::Internal::PrintWmf::create_brush(), and Inkscape::Extension::Internal::PrintEmf::create_pen().
|
static |
Definition at line 75 of file wmf-print.cpp.
|
static |
Definition at line 60 of file emf-inout.cpp.
Referenced by Inkscape::Extension::Internal::Emf::myEnhMetaFileProc().
|
static |
Definition at line 185 of file latex-text-renderer.cpp.
Referenced by Inkscape::Extension::Internal::LaTeXTextRenderer::writePostamble().
|
static |
Definition at line 148 of file latex-text-renderer.cpp.
Referenced by Inkscape::Extension::Internal::LaTeXTextRenderer::writePreamble().
|
static |
Definition at line 77 of file emf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintEmf::begin(), Inkscape::Extension::Internal::PrintWmf::begin(), Inkscape::Extension::Internal::PrintEmf::create_pen(), Inkscape::Extension::Internal::PrintWmf::create_pen(), Inkscape::Extension::Internal::PrintEmf::draw_pathv_to_EMF(), Inkscape::Extension::Internal::PrintEmf::fill(), Inkscape::Extension::Internal::PrintEmf::image(), Inkscape::Extension::Internal::PrintWmf::image(), Inkscape::Extension::Internal::PrintWmf::print_pathv(), Inkscape::Extension::Internal::PrintEmf::print_simple_shape(), Inkscape::Extension::Internal::PrintWmf::print_simple_shape(), Inkscape::Extension::Internal::PrintEmf::text(), and Inkscape::Extension::Internal::PrintWmf::text().
|
static |
Definition at line 74 of file wmf-print.cpp.
|
static |
Definition at line 77 of file wmf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintWmf::begin(), Inkscape::Extension::Internal::PrintWmf::create_brush(), Inkscape::Extension::Internal::PrintWmf::create_pen(), Inkscape::Extension::Internal::PrintWmf::destroy_brush(), Inkscape::Extension::Internal::PrintWmf::destroy_pen(), Inkscape::Extension::Internal::PrintWmf::finish(), and Inkscape::Extension::Internal::PrintWmf::text().
|
inlineconstexpr |
Definition at line 93 of file wmf-inout.h.
Referenced by Inkscape::Extension::Internal::Wmf::myMetaFileProc(), and Inkscape::Extension::Internal::Wmf::open().
|
static |
Definition at line 76 of file wmf-print.cpp.
Referenced by Inkscape::Extension::Internal::PrintWmf::begin(), Inkscape::Extension::Internal::PrintWmf::create_brush(), Inkscape::Extension::Internal::PrintWmf::create_pen(), Inkscape::Extension::Internal::PrintWmf::destroy_brush(), Inkscape::Extension::Internal::PrintWmf::destroy_pen(), Inkscape::Extension::Internal::PrintWmf::finish(), Inkscape::Extension::Internal::PrintWmf::image(), Inkscape::Extension::Internal::PrintWmf::print_pathv(), Inkscape::Extension::Internal::PrintWmf::print_simple_shape(), Inkscape::Extension::Internal::PrintWmf::stroke(), and Inkscape::Extension::Internal::PrintWmf::text().