Table of Contents

TGdipUIPathGradientBrush.TGdipUIPathGradientBrush Constructor

Creates a new UIPathGradientBrush which encapsulates an existing GDI+ PathGradientBrush. Note that if you are encapsulating a brush from Brushes.Color class, you need to pass false in aNeedsDispose, since this class shouldn't dispose the brush when disposing the class.

Syntax

Namespace: FlexCel.Draw

public TGdipUIPathGradientBrush(PathGradientBrush aBrush, Boolean aNeedsDispose)

Parameters

<-> Parameter Type Description
aBrush PathGradientBrush GDI+ brush which will define this brush.
aNeedsDispose Boolean If true, this class will own the GDI+ brush, and dispose it when you dispose the class. If false, the GDI+ brush will not be disposed when disposing this class.
If you are using a brush from Brushes class, you should set this to false. We don't want to dispose system brushes.

See also