AForge.Imaging.UnmanagedImage.UnmanagedImage C# (CSharp) Method

UnmanagedImage() public method

Initializes a new instance of the UnmanagedImage class.

Using this constructor, make sure all specified image attributes are correct and correspond to unmanaged memory buffer. If some attributes are specified incorrectly, this may lead to exceptions working with the unmanaged memory.

public UnmanagedImage ( IntPtr imageData, int width, int height, int stride, PixelFormat pixelFormat ) : System
imageData System.IntPtr Pointer to image data in unmanaged memory.
width int Image width in pixels.
height int Image height in pixels.
stride int Image stride (line size in bytes).
pixelFormat PixelFormat Image pixel format.
return System
        public UnmanagedImage( IntPtr imageData, int width, int height, int stride, PixelFormat pixelFormat )
        {
            this.imageData   = imageData;
            this.width       = width;
            this.height      = height;
            this.stride      = stride;
            this.pixelFormat = pixelFormat;
        }

Same methods

UnmanagedImage::UnmanagedImage ( BitmapData bitmapData ) : System