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

            return(GetTTBitmap(image, image.Width, image.Height));
        }
Example #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));
        }