winmaped2.pr2.BufferImage.BufferImage C# (CSharp) Method

BufferImage() public method

public BufferImage ( int width, int height ) : System
width int
height int
return System
        public BufferImage(int width, int height)
        {
            this.width = width;
            this.height = height;
            this.buf = (int*)System.Runtime.InteropServices.Marshal.AllocHGlobal(width * height * 4);
            this.stride = width * 4;
            this.pitch = width;
        }

Same methods

BufferImage::BufferImage ( Bitmap bmp ) : System
BufferImage::BufferImage ( int width, int height, int pixels ) : System