How to create a user Hatch style

Hello All Professional

Any one have an experience of creating a user defined Hatch style in GDI+ .

Is there any way to scale the line spacing ( pitch) of the existing Hatch style of GDI+.

Your clear answer would be highly appreciated.

Regards



Answer this question

How to create a user Hatch style

  • Sergio Olveira

    Thank Chris for your reply

    But does TextureBrush could be customized. My point is to use an off-the shelf tools to fill a close contour as a drawing hatch . I don't want to build a class to do that , though I could do it but I don't want to waste my time on this intensive mathematical job.

    Regards


  • DC11

    You can customize the texture (Image) itself using the Matrix, then load it on to your TexttureBrush for use, you can achieve similar effect as customized HatchBrush thatway, though it needs more code to do it.

    -chris

  • joneal

    I think GDI+ has no native support for creating customized styles for HatchBrush; perhaps you may want to consider using TextureBrush instead, having a 16x16 image as your texture fill.

    -chris

  • How to create a user Hatch style