AGS.Editor.SpriteSelector.CreateSpriteForBitmap C# (CSharp) Метод

CreateSpriteForBitmap() приватный Метод

private CreateSpriteForBitmap ( Bitmap bmp, bool remapColours, bool useRoomBackground, bool alphaChannel ) : Sprite
bmp System.Drawing.Bitmap
remapColours bool
useRoomBackground bool
alphaChannel bool
Результат Sprite
        private Sprite CreateSpriteForBitmap(Bitmap bmp, bool remapColours, bool useRoomBackground, bool alphaChannel)
        {
            Sprite newSprite = Factory.NativeProxy.CreateSpriteFromBitmap(bmp, (SpriteImportMethod)SpriteImportWindow.SpriteImportMethod, remapColours, useRoomBackground, alphaChannel);
            _currentFolder.Sprites.Add(newSprite);
            return newSprite;
        }