Click or drag to resize
Ranorex

ImagingBitmapMemoryPressure Class

Adds memory pressure to a bitmap.
Inheritance Hierarchy
SystemObject
  RanorexImagingBitmapMemoryPressure

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
[SerializableAttribute]
public class BitmapMemoryPressure

The ImagingBitmapMemoryPressure type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd(Bitmap)
Adds memory pressure to the bitmap.
Public methodStatic memberAdd(Image)
Adds memory pressure to the image if it is a Bitmap.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of this class.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
The .NET Bitmap class does not handle garbage collection very well, because most of the memory needed by such instances are unmanaged. This class provides memory management for Bitmap instances without the need to dispose each instance.

This is done by adding an object to the Tag property that tracks the unmanaged memory of the bitmap.

See Also