Click or drag to resize

PixelMemory Class

PixelMemory is an abstract class that defines how an image's pixels are represented in memory, how they are allocated, deallocated, and accessed.
Inheritance Hierarchy

Namespace:  Atalasoft.Imaging.Memory
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public abstract class PixelMemory : IDisposable, 
	ICloneable

The PixelMemory type exposes the following members.

Constructors
  NameDescription
Protected methodPixelMemory
Initializes a new instance of the PixelMemory class
Top
Properties
  NameDescription
Public propertyDisposed
Indicates whether or the PixelMemory has been disposed.
Public propertyHeight
Returns the height of the image represented.
Public propertyCode exampleIsLocked
Indicates whether or not the PixelMemory is currently locked.
Public propertyRowStride
Returns the number of bytes in a row of this image. The number is always rounded up to the next multiple of 4.
Top
Methods
  NameDescription
Public methodAcquirePixelAccessor
Returns an object that inherits from PixelAccessor that is used to get to an image's pixel data.
Public methodClone
Creates a deep copy of this image and its memory.
Public methodDispose
Disposes this PixelMemory and all its managed and unmanaged resources.
Protected methodDispose(Boolean)
Disposes this PixelMemory and all its managed and unmanaged resources.
Protected methodDisposeManagedResources
Disposes any unmanaged resources that implement IDisposable
Protected methodDisposeUnmanagedResources
Disposes and unmanaged resources, such as memory not claimed by the garbage collector.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the PixelMemory 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 methodLLClone
Subclasses of PixelMemory implement this method to create a deep copy of the object.
Protected methodLLGetHeight
Subclasses of PixelMemory implement this method to return the height of the image.
Protected methodLLGetPixelAccessor
Subclasses of PixelMemory implement this method to return a new PixelAccessor object suitable for their particular version of PixelMemory.
Protected methodLLGetRowStride
Subclasses of PixelMemory implement this method to return the number of bytes necessary for a row of pixels. This number should be rounded up to the next multiple of 4 bytes.
Protected methodLLLock
Subclasses of PixelMemory implement this method to lock the memory.
Protected methodLLUnlock
Subclasses of PixelMemory implement this method to unlock the memory.
Public methodLock
Locks this instance of PixelMemory. For memory objects that are movable, this will prevent the PixelMemory from moving. Client code rarely needs to use this method.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberPixelDataFromPixelMemory(AtalaImage)
Returns an IntPtr to the first scanline of an image if this version of PixelMemory supports that operation, IntPtr.Zero is returned otherwise.
Public methodStatic memberPixelDataFromPixelMemory(PixelMemory)
Returns an IntPtr to the first scanline of an image if this version of PixelMemory supports that operation, IntPtr.Zero is returned otherwise.
Public methodStatic memberPointerSum
Returns an IntPtr that is offset by the provided amount.
Public methodStatic memberThrowOnNonContiguous(AtalaImage)
This is a utility method to throw an exception if a PixelMemory object is not represented by a single contiguous block of memory.
Public methodStatic memberThrowOnNonContiguous(PixelMemory)
This is a utility method to throw an exception if a PixelMemory object is not represented by a single contiguous block of memory.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleUnlock
Top
See Also