Hi to all,

I'm looking for a method to obtain the coordinates of the points a PathGradientBrush is made of.

Details:

My questions belongs to the .NET class PathGradientBrush (not to the underlying GDI+ object!). Therefore I am working in C++/CLI.

Asume you have constructed a PathGradientBrush object by:

PathGradientBrush^ pBrush = gcnew PathGradientBrush(pts);

where pts is of array<Point>^ (contains the points of the path for the brush).

Now my question is:
Is it possible to obtain just from the constructed brush (pBrush) the point-coordinates it is made of? It seems that the PathGradientBrush class doesn't store them anywhere!?

The reason for my question is that I want to write all properties of the brush into a file so I can read them back and construct the brush again. I know I could store additional information by myself but I want to know whether these informations are stored anywhere within the brush?

Thank's in advance

Physicus.