WpfDemo.RgbaBitmapSource.RgbaBitmapSource C# (CSharp) Method

RgbaBitmapSource() public method

public RgbaBitmapSource ( byte rgbaBuffer, int pixelWidth ) : System
rgbaBuffer byte
pixelWidth int
return System
        public RgbaBitmapSource(byte[] rgbaBuffer, int pixelWidth)
        {
            this.rgbaBuffer = rgbaBuffer;
            this.pixelWidth = pixelWidth;
            this.pixelHeight = rgbaBuffer.Length / (4 * pixelWidth);
        }