Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8650257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:46:24+00:00 2026-06-12T13:46:24+00:00

The following picture show a path geometry in Direct2D, it contains 5 segments, each

  • 0

The following picture show a path geometry in Direct2D, it contains 5 segments, each segment is a straight line, my request is that, given such a hill, i want to get all the 5 lines.

enter image description here

but it seems there is no related API can get the segments of a path geometry in Direct2D, I see the ID2D1PathGeometry interface provide a method GetSegmentCount, if we can not get the segments, why Microsoft provide this method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:46:25+00:00Added an answer on June 12, 2026 at 1:46 pm

    You can do this with ID2D1PathGeometry::Stream(). You will have to write a class that implements ID2D1GeometrySink. You may find it useful to implement this in a generalized sense such that instead of looking for the exact data that you need now, it can pump out an object tree. If you need an example for what type of object model to use, look no further than WPF’s System.Windows.Media.Geometry ( http://msdn.microsoft.com/en-us/library/system.windows.media.geometry.aspx ).

    You can also easily convert from those classes back to ID2D1PathGeometry, and use whichever is most comfortable or appropriate for any situation. I’ve written both conversions and found it to be pretty straightforward once I realized they were using the same “language.” I especially found that it helped to organize my understanding as to the difference between “figures” and “segments.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As show in the picture I have following structures to store set of closet
Why does the following code show a black image instead of the picture? How
Look at the following picture, which is showing a smart tag for DataGridView. DataGridView
Consider the following picture representing the WCF channel stack: alt text http://i.msdn.microsoft.com/ee672186.image001(en-us).jpg I'm implementing
I need to style a regular html list like the following picture: as you
I have a graph created with MS Chart like the following picture. As you
I want the style of three div align as same as the following picture.
Picture the following situation. I have an XML document as follows, <Form> <Control Type=Text
I want to create a calendar with the following features in picture I want
i have following code for moving 4 picture around circular way,but it can rotate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.