Click or drag to resize

PixelMemoryFactory Class

PixelMemoryFactory is a singleton object that is used for allocating all image memory in dotImage. The object is accessed through the static Factory property.
Inheritance Hierarchy

Namespace:  Atalasoft.Imaging.Memory
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public class PixelMemoryFactory

The PixelMemoryFactory type exposes the following members.

Public propertyCode exampleAllocator
Sets or gets the PixelMemoryAllocator that will be used to allocate PixelMemory.
Public propertyAllocatorObject
Sets or gets and object passed to the Allocator delegate.
Public propertyStatic memberCode exampleDefaultAllocator
Gets the default allocator that is used by dotImage.
Public propertyStatic memberCode exampleFactory
Gets the singleton object used for memory allocation.
Public methodCode exampleAllocate
Allocates a new PixelMemory object using the supplied parameters.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
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.)
All PixelMemory should be allocated through this object instead of constructing a concrete subclass of PixelMemory directly.
PixelMemory memory = PixelMemoryFactory.Factory.Allocate(parameters);
See Also