Hi,
I am unable to get the stroke width for the path item in "mm",
Inkscape::Util::Unit const *const unit = unitSelector->getUnit(); for (std::vector<SPItem*>::const_iterator i = items.begin(); i != items.end(); ++i) {
double sw = (*i)->style->stroke_width.computed; double ei = Inkscape::Util::Quantity::convert(sw, unit, "mm");
Please suggest proper way to get.
Regards, Sarathy
Hi Sarathy.
Could you try with unit->abbr? Also Inkscape::Util::Unit const *const unit become into:Inkscape::Util::Unit const * unit
Cheers, Jabier.
On Wed, 2017-11-15 at 13:30 +0000, Parthasarathy R. wrote:
Hi, I am unable to get the stroke width for the path item in “mm”, Inkscape::Util::Unit const *const unit = unitSelector->getUnit(); for (std::vector<SPItem*>::const_iterator i = items.begin(); i != items.end(); ++i) { double sw = (*i)->style->stroke_width.computed; double ei = Inkscape::Util::Quantity::convert(sw, unit, "mm"); Please suggest proper way to get. Regards, Sarathy
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Thank you jabier.
Regards, Sarathy -----Original Message----- From: Jabier Arraiza [mailto:jabier.arraiza@...2893...] Sent: 16 November 2017 AM 02:32 To: Parthasarathy R.; 'inkscape-devel@lists.sourceforge.net' Subject: Re: [Inkscape-devel] Stroke width
Hi Sarathy.
Could you try with unit->abbr? Also Inkscape::Util::Unit const *const unit become into:Inkscape::Util::Unit const * unit
Cheers, Jabier.
On Wed, 2017-11-15 at 13:30 +0000, Parthasarathy R. wrote:
Hi, I am unable to get the stroke width for the path item in “mm”, Inkscape::Util::Unit const *const unit = unitSelector->getUnit(); for (std::vector<SPItem*>::const_iterator i = items.begin(); i != items.end(); ++i) { double sw = (*i)->style->stroke_width.computed; double ei = Inkscape::Util::Quantity::convert(sw, unit, "mm"); Please suggest proper way to get. Regards, Sarathy
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Jabier Arraiza
-
Parthasarathy R.