Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Open polygons (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] format does not work correctly for large Int64's
Next thread: [MBS] Broadcast key stroke events


Re: [MBS] Popupmenu   -   Garth Hjelte
  [MBS] Open polygons   -   Massimo Valle
   Re: [MBS] Open polygons   -   Massimo Valle
   Re: [MBS] Open polygons   -   Massimo Valle
    Re: [MBS] Open polygons   -   Christian Schmitz
   Re: [MBS] Open polygons   -   Christian Schmitz
   Re: [MBS] Open polygons   -   Massimo Valle
   Re: [MBS] Open polygons   -   Christian Schmitz
   Re: [MBS] Open polygons   -   Marnaud

[MBS] Open polygons
Date: 18.04.13 09:39 (Thu, 18 Apr 2013 10:39:18 +0200)
From: Massimo Valle

I'm looking for a way to draw an open polygon. The Graphics.DrawPolygon method always close the polygon but I need to have it open.
(I know I can draw lines, but this method produce an ugly effect when using semi-transparent lines: the connecting vertices transparency is summed)

Is there something on MBS plugins to do this?

Massimo Valle


SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: <email address removed>
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, Dipl.-Wirt.ing.(FH) Thorsten Beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Open polygons
Date: 18.04.13 11:47 (Thu, 18 Apr 2013 12:47:28 +0200)
From: Massimo Valle

That's what I did at first but since I have to draw transparent lines, every time I start a new line from the end of the old one, the transparency is added and I get polygons with darker spots at vertices.
Drawing a full polygon in one pass will not create this ugly effect.

Massimo Valle

On 18.04.2013, at 11:57, Christian Schmitz <<email address removed>> wrote:

> How about Drawing it yourself?
>
> DrawPoly just draws lines.
>
> Greetings
> Christian
>
> --
> Traveling through the world.
>
> Am 18.04.2013 um 11:38 schrieb Massimo Valle <<email address removed>>:
>
>>
>> On 18.04.2013, at 10:54, Christian Schmitz <<email address removed>> wrote:
>>
>>>
>>> Am 18.04.2013 um 10:39 schrieb Massimo Valle <<email address removed>>:
>>>
>>>>
>>>> I'm looking for a way to draw an open polygon. The Graphics.DrawPolygon method always close the polygon but I need to have it open.
>>>> (I know I can draw lines, but this method produce an ugly effect when using semi-transparent lines: the connecting vertices transparency is summed)
>>>>
>>>> Is there something on MBS plugins to do this?
>>>
>>>
>>> Sorry, I don't think so.
>>
>> It should be possible on Mac, using CoreGraphics, but how to do it on Windows? I need a cross platform solution.
>>
>> Massimo Valle
>>
>>
>>
>>
>> SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
>> Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: <email address removed>
>> Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, Dipl.-Wirt.ing.(FH) Thorsten Beck
>>
>> _______________________________________________
>> Mbsplugins_monkeybreadsoftware.info mailing list
>> <email address removed>
>> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: <email address removed>
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, Dipl.-Wirt.ing.(FH) Thorsten Beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Open polygons
Date: 18.04.13 10:38 (Thu, 18 Apr 2013 11:38:41 +0200)
From: Massimo Valle

On 18.04.2013, at 10:54, Christian Schmitz <<email address removed>> wrote:

>
> Am 18.04.2013 um 10:39 schrieb Massimo Valle <<email address removed>>:
>
>>
>> I'm looking for a way to draw an open polygon. The Graphics.DrawPolygon method always close the polygon but I need to have it open.
>> (I know I can draw lines, but this method produce an ugly effect when using semi-transparent lines: the connecting vertices transparency is summed)
>>
>> Is there something on MBS plugins to do this?
>
>
> Sorry, I don't think so.

It should be possible on Mac, using CoreGraphics, but how to do it on Windows? I need a cross platform solution.

Massimo Valle



SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: <email address removed>
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, Dipl.-Wirt.ing.(FH) Thorsten Beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Open polygons
Date: 18.04.13 10:57 (Thu, 18 Apr 2013 11:57:52 +0200)
From: Christian Schmitz
How about Drawing it yourself?

DrawPoly just draws lines.

Greetings
Christian

Re: [MBS] Open polygons
Date: 18.04.13 10:00 (Thu, 18 Apr 2013 11:00:17 +0200)
From: Christian Schmitz

Am 18.04.2013 um 10:58 schrieb Massimo Valle <<email address removed>>:

>
> I thought to this, but it's not easy to remove a segment leaving the ending segments good looking. My segments are 10px wide and ends with rounded caps.

Well, DynaPDF can also do polygons.

Greetings
Christian

Re: [MBS] Open polygons
Date: 18.04.13 09:58 (Thu, 18 Apr 2013 10:58:23 +0200)
From: Massimo Valle

On 18.04.2013, at 10:46, Marnaud <<email address removed>> wrote:

> Le 18 avr. 2013 à 10:39, Massimo Valle a écrit:
>
>> I'm looking for a way to draw an open polygon. The Graphics.DrawPolygon method always close the polygon but I need to have it open.
>> (I know I can draw lines, but this method produce an ugly effect when using semi-transparent lines: the connecting vertices transparency is summed)
>
> What about drawing your closed polygon (in a buffer picture if necessary) and blank out the last segment?

I thought to this, but it's not easy to remove a segment leaving the ending segments good looking. My segments are 10px wide and ends with rounded caps.

Thanks anyway,

Massimo Valle



SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: <email address removed>
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, Dipl.-Wirt.ing.(FH) Thorsten Beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Open polygons
Date: 18.04.13 09:54 (Thu, 18 Apr 2013 10:54:46 +0200)
From: Christian Schmitz

Am 18.04.2013 um 10:39 schrieb Massimo Valle <<email address removed>>:

>
> I'm looking for a way to draw an open polygon. The Graphics.DrawPolygon method always close the polygon but I need to have it open.
> (I know I can draw lines, but this method produce an ugly effect when using semi-transparent lines: the connecting vertices transparency is summed)
>
> Is there something on MBS plugins to do this?

Sorry, I don't think so.

Greetings
Christian

Re: [MBS] Open polygons
Date: 18.04.13 09:46 (Thu, 18 Apr 2013 10:46:53 +0200)
From: Marnaud
Le 18 avr. 2013 à 10:39, Massimo Valle a écrit:

> I'm looking for a way to draw an open polygon. The Graphics.DrawPolygon method always close the polygon but I need to have it open.
> (I know I can draw lines, but this method produce an ugly effect when using semi-transparent lines: the connecting vertices transparency is summed)

What about drawing your closed polygon (in a buffer picture if necessary) and blank out the last segment?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info