Click or drag to resize

GlobalAllocPixelMemory Class

Represents a PixelMemory object with memory allocated by GlobalAlloc.
Inheritance Hierarchy
SystemObject
  Atalasoft.Imaging.MemoryPixelMemory
    Atalasoft.Imaging.MemoryResidentPixelMemory
      Atalasoft.Imaging.MemoryGlobalAllocPixelMemory

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 class GlobalAllocPixelMemory : ResidentPixelMemory

The GlobalAllocPixelMemory type exposes the following members.

Constructors
  NameDescription
Public methodGlobalAllocPixelMemory(Int32, Int32)
Constructs a new PixelMemory object with memory allocated by GlobalAlloc.
Public methodGlobalAllocPixelMemory(Int32, Int32, Int32)
Constructs a new PixelMemory object with memory allocated by GlobalAlloc.
Public methodGlobalAllocPixelMemory(Int32, Int32, Int32, Boolean)
Constructs a new PixelMemory object with memory allocated by GlobalAlloc.
Public methodGlobalAllocPixelMemory(Int32, Int32, Int32, Int32, Boolean)
Constructs a new PixelMemory object with memory allocated by GlobalAlloc.
Public methodGlobalAllocPixelMemory(Int64, Int32, Int32, Int32, Boolean)
Initializes a new instance of the GlobalAllocPixelMemory class
Public methodGlobalAllocPixelMemory(IntPtr, Int32, Int32, Int32, Int32)
Constructs a new PixelMemory object with memory allocated by GlobalAlloc in the provided pointer.
Public methodGlobalAllocPixelMemory(IntPtr, Int64, Int32, Int32, Int32)
Initializes a new instance of the GlobalAllocPixelMemory class.
Top
Properties
  NameDescription
Public propertyDisposed
Indicates whether or the PixelMemory has been disposed.
(Inherited from PixelMemory.)
Public propertyHeight
Returns the height of the image represented.
(Inherited from PixelMemory.)
Public propertyIsContiguous
Returns true.
(Inherited from ResidentPixelMemory.)
Public propertyCode exampleIsLocked
Indicates whether or not the PixelMemory is currently locked.
(Inherited from PixelMemory.)
Protected propertyLLPixelMemoryStart
Returns a pointer to the start of memory.
(Inherited from ResidentPixelMemory.)
Protected propertyOffsetToFirstScanline
Returns an offset to the first scanline of the image.
(Inherited from ResidentPixelMemory.)
Public propertyPixelData
Returns a pointer to the first scanline in the image.
(Inherited from ResidentPixelMemory.)
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.
(Inherited from PixelMemory.)
Protected propertySizeInBytes
Returns the number of bytes used by the memory for this image.
(Inherited from ResidentPixelMemory.)
Top
Methods
  NameDescription
Public methodAcquirePixelAccessor
Returns an object that inherits from PixelAccessor that is used to get to an image's pixel data.
(Inherited from PixelMemory.)
Protected methodAllocateMemory
Allocates memory for this PixelMemory object and reports it for tracking.
(Inherited from ResidentPixelMemory.)
Public methodClone
Creates a deep copy of this image and its memory.
(Inherited from PixelMemory.)
Public methodDispose
Disposes this PixelMemory and all its managed and unmanaged resources.
(Inherited from PixelMemory.)
Protected methodDispose(Boolean)
Disposes this PixelMemory and all its managed and unmanaged resources.
(Inherited from PixelMemory.)
Protected methodDisposeManagedResources
Disposes any unmanaged resources.
(Inherited from ResidentPixelMemory.)
Protected methodDisposeUnmanagedResources
Disposes the memory used by this object.
(Inherited from ResidentPixelMemory.)
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.
(Inherited from PixelMemory.)
Protected methodFreeMemory
Frees memory.
(Inherited from ResidentPixelMemory.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetScanLinePtr
Gets a pointer to the a given scanline.
(Inherited from ResidentPixelMemory.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodLLAllocateMemory(Int32, Boolean) Obsolete.
Allocates memory using GlobalAlloc.
(Overrides ResidentPixelMemoryLLAllocateMemory(Int32, Boolean).)
Protected methodLLAllocateMemory(Int64, Boolean)
Subclasses of ResidentPixelMemory implement this method to allocate memory.
(Overrides ResidentPixelMemoryLLAllocateMemory(Int64, Boolean).)
Protected methodLLClone
Creates a deep copy of this object.
(Overrides PixelMemoryLLClone.)
Protected methodLLFreeMemory
Frees the memory occupied by this object using GlobalFree.
(Overrides ResidentPixelMemoryLLFreeMemory(IntPtr).)
Protected methodLLGetHeight
Returns the height of the image.
(Inherited from ResidentPixelMemory.)
Protected methodLLGetPixelAccessor
Returns a suitable PixelAccesor object for this PixelMemory.
(Inherited from ResidentPixelMemory.)
Protected methodLLGetRowStride
Returns the size of a scanline in bytes, rounded up to the next multiple of 4.
(Inherited from ResidentPixelMemory.)
Protected methodLLLock
Subclasses of PixelMemory implement this method to lock the memory.
(Inherited from PixelMemory.)
Protected methodLLUnlock
Subclasses of PixelMemory implement this method to unlock the memory.
(Inherited from PixelMemory.)
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.
(Inherited from PixelMemory.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRerportMemoryAllocated
Rerports that memory was allocated.
(Inherited from ResidentPixelMemory.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleUnlock (Inherited from PixelMemory.)
Top
See Also