public unsafe Bitmap TakeScreenshot()
{
return new PspBitmap(
CurrentInfo.PixelFormat,
CurrentInfo.BufferWidth,
CurrentInfo.Height,
(byte*)Memory.PspAddressToPointerSafe(
CurrentInfo.FrameAddress,
PixelFormatDecoder.GetPixelsSize(CurrentInfo.PixelFormat, CurrentInfo.BufferWidth * CurrentInfo.Height)
)
).ToBitmap();
}