Click or drag to resize

BrushCacheGdiBorrowBrush(BrushX, RectangleD2D, Graphics, Double) Method

Borrows a brush for temporary use. Please embed the returned BrushCacheGdiGdiBrush in a using statement, so that it is properly returned to the cache.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public BrushCacheGdiGdiBrush BorrowBrush(
	BrushX brush,
	RectangleD2D boundingRectangle,
	Graphics g,
	double objectScale
)

Parameters

brush  BrushX
The BrushX.
boundingRectangle  RectangleD2D
The bounding rectangle of the brush.
g  Graphics
The Gdi graphics context (is used to determine the graphics resolution).
objectScale  Double
The scale of the object (used for scaling the graphics resolution). If in doubt, use 1.

Return Value

BrushCacheGdiGdiBrush
A BrushCacheGdiGdiBrush object for temporary use.
See Also