public static void TestStatusAsset_ToImage_Bitmap_ImageTGAEmpty()
        {
            var asset = new StratusAsset {
                Type = 18,
                Data = new byte[] { },
            };

            Assert.IsNull(asset.ToImage <Bitmap>());
        }
        public static void TestStatusAsset_ToImage_Bitmap_TextureTGANull()
        {
            var asset = new StratusAsset {
                Type = 18,
                Data = null,
            };

            Assert.IsNull(asset.ToImage <Bitmap>());
        }
        private Texture(StratusAsset asset)
        {
            if (asset.IsTextureAsset())
            {
                LOG.Debug($"Decoding image {asset.Id} named '{asset.Name}'. Notable data: Type={asset.Type}, Temp={asset.Temporary}, Data Length={asset.Data?.Length}.");

                var bitmap = asset.ToImage <Bitmap>();

                Image        = bitmap;
                AverageColor = ComputeAverageColor(bitmap);
            }
        }
        //[Test] No TGA processor as yet.
        public static void TestStatusAsset_ToImage_Bitmap_TextureTGA()
        {
            var data = new byte[TGA_DATA.Length];

            Array.Copy(TGA_DATA, data, TGA_DATA.Length);

            var asset = new StratusAsset {
                Type = 18,
                Data = data,
            };

            var img = asset.ToImage <Bitmap>();

            Assert.IsNotNull(img);
        }
        public static void TestStatusAsset_ToImage_Bitmap_ImageJPEG()
        {
            var data = new byte[JPEG_DATA.Length];

            Array.Copy(JPEG_DATA, data, JPEG_DATA.Length);

            var asset = new StratusAsset {
                Type = 19,
                Data = data,
            };

            var img = asset.ToImage <Bitmap>();

            Assert.IsNotNull(img);
        }