PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 7:58 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Path clipping (extract)
PostPosted: Mon May 18, 2015 10:13 am 
Offline

Joined: Mon May 18, 2015 10:06 am
Posts: 1
Hello,

I am trying to draw some paths, where I need to clip holes out of other paths. I´m using the GDI+ build, this is how I solved this problem in GDI+:

Code:
If CheckPolygonClockwise(i.poly) Then
                                            Dim path As GraphicsPath = PointToPath(i.poly)
                                            If path IsNot Nothing Then
                                                Dim reg As New Region(PointToPath(i.poly))

                                                labelImGr.Clip = reg
                                                labelImGr.Clear(Color.Transparent)

                                                labelImGr.ResetClip()
                                                cntr += 1
                                            End If
                                        End If


Since the only function in pdfSharp is "intersectClip()", I don´t really know how I can solve this.

Thanks for help!
Oliver


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 145 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group