Searched refs:dpi (Results 1 - 7 of 7) sorted by relevance

/inkscape/src/ui/dialog/
H A Dprint.cpp59 gdouble dpi = junk->_tab->bitmap_dpi(); local
60 prefs->setDouble("/dialogs/printing/dpi", dpi);
82 (unsigned long)(Inkscape::Util::Quantity::convert(width, "px", "in") * dpi),
83 (unsigned long)(Inkscape::Util::Quantity::convert(height, "px", "in") * dpi),
84 dpi, dpi, bgcolor, NULL, NULL, true, std::vector<SPItem*>());
87 //context->set_cairo_context ( Cairo::Context::create (Cairo::ImageSurface::create_from_png (tmp_png) ), dpi, dpi );
100 cairo_scale(cr, Inkscape::Util::Quantity::convert(1, "in", "pt") / dpi, Inkscap
[all...]
H A Dexport.cpp304 "", _("dpi"), 2, 0, NULL );
1050 // retrieve export dpi hints
1052 gdouble dpi = 0.0; local
1054 dpi = atof(dpi_hint);
1056 if (dpi == 0.0) {
1057 dpi = getValue(xdpi_adj);
1062 gint width = (gint) (area->width() * dpi / DPI_BASE + 0.5);
1063 gint height = (gint) (area->height() * dpi / DPI_BASE + 0.5);
1074 *area, width, height, dpi, dpi,
[all...]
/inkscape/share/extensions/
H A Dwebslicer_create_rect.py37 self.OptionParser.add_option("--dpi",
39 dest="dpi",
120 if not is_empty(self.options.dpi):
121 conf_txt += "dpi:" + str(self.options.dpi) +"\n"
134 'dpi', 'dimension',
/inkscape/src/
H A Dmain.cpp328 {"export-dpi", 'd',
360 N_("The width of exported bitmap in pixels (overrides export-dpi)"),
365 N_("The height of exported bitmap in pixels (overrides export-dpi)"),
1471 gdouble dpi = 0.0; local
1524 // retrieve export dpi hints
1528 g_warning ("Using bitmap dimensions from the command line (--export-dpi, --export-width, or --export-height). DPI hint %s is ignored.", dpi_hint);
1530 dpi = atof(dpi_hint);
1568 // set filename and dpi from options, if not yet set from the hints
1577 if (sp_export_dpi && dpi == 0.0) {
1578 dpi
1777 gdouble dpi = 96.0; local
[all...]
/inkscape/src/ui/
H A Dclipboard.cpp1174 gdouble dpi = Inkscape::Util::Quantity::convert(1, "in", "px"); local
1180 unsigned long int width = (unsigned long int) (Inkscape::Util::Quantity::convert(area.width(), "px", "in") * dpi + 0.5);
1181 unsigned long int height = (unsigned long int) (Inkscape::Util::Quantity::convert(area.height(), "in", "px") * dpi + 0.5);
1194 sp_export_png_file(_clipboardSPDoc, filename, area, width, height, dpi, dpi, bgcolor, NULL, NULL, true, x);
/inkscape/src/libuemf/
H A Duwmf.c2429 If the size + dpi result in out of range values a failure will result.
2432 \param dpi Logical units/inch. If 0 defaults to 1440.
2436 unsigned int dpi
2447 if(!dpi)dpi=1440;
2448 xmax = U_ROUND((double) size->x * (double) dpi);
2449 ymax = U_ROUND((double) size->y * (double) dpi);
2462 ((U_WMRPLACEABLE *) record)->Inch = dpi;
H A Duwmf.h2139 char *U_WMRHEADER_set(U_PAIRF *size,unsigned int dpi);

Completed in 143 milliseconds