Exemple #1
0
        internal virtual void ImportBitmap(Stream iso, System.Drawing.Bitmap bmp)
        {
            bool           bad    = false;
            AbstractSprite sprite = GetAbstractSpriteFromIso(iso);

            sprite.ImportBitmap(bmp, out bad);
            byte[] sprBytes = sprite.ToByteArray(0);
            if (sprBytes.Length > Size)
            {
                throw new SpriteTooLargeException(sprBytes.Length, (int)Size);
            }

            ImportSprite(iso, sprBytes);
        }
        internal override void ImportBitmap(Stream iso, System.Drawing.Bitmap bmp)
        {
            bool           bad    = false;
            AbstractSprite sprite = GetAbstractSpriteFromIso(iso);

            sprite.ImportBitmap(bmp, out bad);
            byte[] sprBytes = sprite.ToByteArray(0);
            if (sprBytes.Length > Size)
            {
                throw new SpriteTooLargeException(sprBytes.Length, (int)Size);
            }

            ImportSprite(iso, sprBytes);
            for (int i = 0; i < NumChildren; i++)
            {
                ImportSp2(iso, sprite.ToByteArray(i + 1), i);
            }
        }