Click or drag to resize

ImageMemory Class

Note: This API is now obsolete.

This class handles memory associated with an image. It controls how the memory is allocated and freed. Use this class to enable memory file mapping.

This class is no longer used in DotImage. Please use PixelMemory instead.

Inheritance Hierarchy

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
[ObsoleteAttribute("This class is deprecated.  Please use PixelMemory instead.")]
public class ImageMemory : MarshalByRefObject, 
	IDisposable

The ImageMemory type exposes the following members.

Constructors
  NameDescription
Public methodImageMemory Obsolete.
Initializes a new instance of the ImageMemory class.
Public methodImageMemory(Int32) Obsolete.
Initializes a new instance of ImageMemory indicating the number of bytes to allocate.
Public methodImageMemory(IntPtr) Obsolete.
Initializes a new instance of ImageMemory setting the pre allocated memory pointer.
Public methodImageMemory(Int32, Boolean) Obsolete.
Initializes a new instance of ImageMemory indicating the number of bytes to allocate and if this object should handle the freeing of that memory.
Public methodImageMemory(IntPtr, Boolean) Obsolete.
Initializes a new instance of ImageMemory setting the pre allocated memory pointer and if this object should handle the freeing of that memory.
Top
Properties
  NameDescription
Public propertyStatic memberEnableMemoryFileMapping Obsolete.
File mapping is no longer supported. This property will throw on set.
Public propertyFileMapped Obsolete.
File mapping is no longer supported.
Public propertyHandle
Gets the pointer to the memory handled by this object.
Public propertyStatic memberMemoryMapTempPath Obsolete.
File mapping is no longer supported. This property will throw on set.
Public propertyStatic memberMemoryMapThreshold Obsolete.
File mapping is no longer supported. This property will throw on set.
Public propertyPreventDispose
Gets or sets a value indicating if the memory should be freed when disposing.
Top
Methods
  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the ImageMemory
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the ImageMemory class.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
File Mapped memory can greatly increase performance when working with extremely large images or when system resources are limited.
See Also

Reference

Introduction to Memory Management