Click or drag to resize

PixelMemoryFactoryParameters Class

This class is used to control how PixelMemory is allocated by the PixelMemoryFactory
Inheritance Hierarchy

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

The PixelMemoryFactoryParameters type exposes the following members.

Public methodPixelMemoryFactoryParameters(Int32, Int32)
Constructs a new PixelMemoryFactoryParameters object.
Public methodPixelMemoryFactoryParameters(Int64, Int32, Int32)
Constructs a new PixelMemoryFactoryParameters object.
Public methodCode examplePixelMemoryFactoryParameters(Int64, Int32, Int32, Int32, Boolean)
Constructs a new PixelMemoryFactoryParameters object.
Public propertyHeight

Sets or gets the requested height of the image in scan lines

Public propertyNumBytes
Sets or gets the requested total number of bytes needed for the memory. This should be no less than height * rowStride + offsetToFirstScanline, but it can be more.
Public propertyOffsetToFirstScanline
Sets or gets the offset in bytes to the first scan line from the start of memory.
Public propertyRowStride
Sets or gets the length of a scan line in bytes. This should be a multiple of 4.
Public propertyZeroMemory
Sets or gets whether or not memory will be set to zero upon allocation
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.)
public PixelMemory MyAllocator(PixelMemoryFactoryParameters factoryParameters, object allocationObject)
    MyFactoryParams myParams = factoryParameters as MyFactoryParams;
    if (myParams != null) {
        return PerformCustomAllocation(myParams);
    else {
        return InvokePreviousAllocator(factoryParameters);

See Also