How to draw an "invisible" rectangle?

113 views
Skip to first unread message

Pierre Clouthier

unread,
Nov 21, 2017, 4:17:04 PM11/21/17
to libHaru
How does one draw a rectangle with a zero-width line?

This:

HPDF_Page_SetLineWidth(page, 0.f);

results in a thin line, not a zero-width line.

Is there another way to define a clipping region than drawing a rectangle? My goal is to clip the output. I am following the sample code, which uses a rectangle.

Is no one monitoring this forum? I am willing to pay for consulting services.
Message has been deleted

Damian Woroch

unread,
Nov 21, 2017, 4:48:10 PM11/21/17
to libHaru
Call
HPDF_Page_EndPath(page);
instead of Fill or Stroke. Calling EndPath will end the path object without filling or painting.

Bill Horger

unread,
Nov 21, 2017, 4:51:29 PM11/21/17
to LibHaru Group
You may be able to set the color to white to make it "disappear". As far as I know, you can't make it zero width.

If you wish to clip, I seem to remember that you need to draw a Text Rectangle. Is that what you are doing? I remember from a previous discussion that this is problematic as a solution.

There are many people who monitor this list. You have been asking questions that I certainly cannot answer, and if I were to reply it therefore would be of absolutely no help.

Bill


--
--
---
libHaru.org development mailing list
To unsubscribe, send email to libharu-unsubscribe@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "libHaru" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libharu+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pierre Clouthier

unread,
Nov 22, 2017, 8:33:44 AM11/22/17
to libHaru

Bill Horger

unread,
Nov 22, 2017, 9:06:03 AM11/22/17
to LibHaru Group
Beautiful. Never seen a genealogy done this way!
 

Franco Marchesini

unread,
Nov 22, 2017, 12:29:03 PM11/22/17
to lib...@googlegroups.com
Fantastic idea!!!

Compliment!!!


2017-11-22 15:05 GMT+01:00, Bill Horger <hor...@gmail.com>:
> Beautiful. Never seen a genealogy done this way!
>
>
> On Wed, Nov 22, 2017 at 6:33 AM, Pierre Clouthier
> <sprezza...@gmail.com>
> wrote:
>
>> Damian Woroch: Brilliant! _EndPath() seems to have done the trick. Thank
>> you.
>>
>> Bill: Thank you for your reply. Yes, I am using a rectangle to clip. I
>> can't use the color white because it will overlay the rest of the
>> drawing.
>>
>> This is what I'm doing with Haru:
>> <https://lh3.googleusercontent.com/-XdmzcI_-ZXg/WhV8SRR-_pI/AAAAAAAACw4/-qLZ9GTMsco3ViGreynCxVQy1IvdJdSsgCLcBGAs/s1600/87.png>
>>
>>
>> <https://lh3.googleusercontent.com/-XdmzcI_-ZXg/WhV8SRR-_pI/AAAAAAAACw4/-qLZ9GTMsco3ViGreynCxVQy1IvdJdSsgCLcBGAs/s1600/87.png>
>>
>>
>>
>> --
>> --
>> ---
>> libHaru.org development mailing list
>> To unsubscribe, send email to libharu-u...@googlegroups.com
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "libHaru" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to libharu+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> --
> ---
> libHaru.org development mailing list
> To unsubscribe, send email to libharu-u...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups
> "libHaru" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to libharu+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages