TGdipUITextureBrush.TGdipUITextureBrush Constructor
Creates a new UITextureBrush which encapsulates an existing GDI+ TextureBrush. 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 TGdipUITextureBrush(TextureBrush aBrush, Boolean aNeedsDispose)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
aBrush | TextureBrush | 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. |