CSPspEmu.Core.Utils.PspBitmap.PspBitmap C# (CSharp) Method

PspBitmap() public method

public PspBitmap ( GuPixelFormats PixelFormat, int Width, int Height, byte Address, int BytesPerLine = -1 ) : System
PixelFormat GuPixelFormats
Width int
Height int
Address byte
BytesPerLine int
return System
        public PspBitmap(GuPixelFormats PixelFormat, int Width, int Height, byte* Address, int BytesPerLine = -1)
        {
            this.GuPixelFormat = PixelFormat;
            this.Width = Width;
            this.Height = Height;
            this.Address = Address;
            this.BitsPerPixel = PixelFormatDecoder.GetPixelsBits(PixelFormat);
            this.ColorFormat = PixelFormatDecoder.ColorFormatFromPixelFormat(PixelFormat);
            if (BytesPerLine < 0)
            {
                this.BytesPerLine = PixelFormatDecoder.GetPixelsSize(GuPixelFormat, Width);
            }
            else
            {
                this.BytesPerLine = BytesPerLine;
            }
        }