Click or drag to resize

PenCacheGdiGdiPen Class

Class used to wrap a native Gdi Brush, and to give it back to the cache if it is no longer in use.
Inheritance Hierarchy
SystemObject
  Altaxo.Graph.GdiPenCacheGdiGdiPen

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class GdiPen : IDisposable

The PenCacheGdiGdiPen type exposes the following members.

Constructors
 NameDescription
Public methodPenCacheGdiGdiPen Initializes a new instance of the PenCacheGdiGdiPen class.
Top
Properties
 NameDescription
Public propertyKey Gets the BrushX together with its environment, that is used to create the native Gdi Brush.
Public propertyPen Gets the native Gdi Brush. This object must not be modified! If it is modified, the function DoNotReturnToCache must be called in order to avoid giving the modified object back to the cache!
Top
Methods
 NameDescription
Public methodStatic memberCreateGdiPen Creates a Gdi+ Pen from a independent PenX, a bounding rectangle, and the effective resolution of the drawing.
Public methodDispose By disposing this object, it is returned to the cache. You should therefore no longer used it!
Public methodDoNotReturnToCache Call this function if you need to modify the native Brush object. By calling this function, this object is not returned to the cache.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Operators
 NameDescription
Public operatorStatic member(PenCacheGdiGdiPen to Pen) Performs an implicit conversion from PenCacheGdiGdiPen to Brush.
Top
See Also