示例#1
0
        public static TT.Bitmap GetTTBitmap(IPixelMemory image)
        {
            if (image == null)
            {
                throw new ArgumentNullException(nameof(image));
            }

            return(GetTTBitmap(image, image.Width, image.Height));
        }
示例#2
0
        public static TT.Bitmap GetTTBitmap(IPixelMemory image, int width, int height)
        {
            if (image == null)
            {
                throw new ArgumentNullException(nameof(image));
            }

            return(new TT.Bitmap(image.GetPixelByteSpan(), width, height, image.ByteStride));
        }