Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Default line cap and join
Default line cap and join [message #29068] Mon, 04 October 2010 13:42 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Mirek

Would it be possible to set the default linecap and linejoin behavior in Painter or in PdfDraw?

In pdf the operators J and j handle this. Example:
	page << "1 j\n";	// Sets round join


Best regards
Iñaki
Re: Default line cap and join [message #29105 is a reply to message #29068] Tue, 05 October 2010 10:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Mon, 04 October 2010 07:42

Hello Mirek

Would it be possible to set the default linecap and linejoin behavior in Painter or in PdfDraw?

In pdf the operators J and j handle this. Example:
	page << "1 j\n";	// Sets round join



How is something "default" if you set it? Smile

Other than that, I believe that defaults for PDF and Painter are the same.

That said, one lacking bridge code is direct connection between Painter and PDF - in reality, it should be easily possible to make PdfPainter - and SvgPainter too - as provided drawing capabilities are almost the same.
Re: Default line cap and join [message #29106 is a reply to message #29105] Tue, 05 October 2010 11:35 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Mirek

Now using directly Painter it is possible to set default line cap and join.

However when doing a Report (with Painter package loaded) or Pdf, it is not possible to set them.

In my case I prefer round join over miter join. However I cannot set it.


Best regards
Iñaki
Re: Default line cap and join [message #29108 is a reply to message #29106] Tue, 05 October 2010 12:41 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 05 October 2010 05:35

Hello Mirek

Now using directly Painter it is possible to set default line cap and join.

However when doing a Report (with Painter package loaded) or Pdf, it is not possible to set them.

In my case I prefer round join over miter join. However I cannot set it.


Ah, I see, good point. I guess I got confused with

Quote:


linejoin behavior in Painter or in PdfDraw?



which should have been

Quote:


linejoin behavior in Report or in PdfDraw?



right?

Or do you suggest some global setting?
Re: Default line cap and join [message #29110 is a reply to message #29108] Tue, 05 October 2010 16:24 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Mirek

Yes, I meant some global setting.

Now:
- Pdf or PdfDraw do not let to define line parameters.
- BufferPainter::BufferPainter() includes:
    attr.cap = LINECAP_BUTT;
    attr.join = LINEJOIN_MITER;

A solution would be that in both cases it would be possible to set the default behavior, as both can be called indirectly.



Best regards
Iñaki
Previous Topic: WebP - new image format
Next Topic: plugin/jpg wrapper patch (SVN r2960)
Goto Forum:
  


Current Time: Thu Mar 28 20:07:05 CET 2024

Total time taken to generate the page: 0.00981 seconds