mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
Add option to export images in "assetName@hash" name format
- Redesigned spriteHelper & texture2DConverter - Improved speed of texture2D preview a bit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using SixLabors.ImageSharp;
|
||||
using SixLabors.ImageSharp.PixelFormats;
|
||||
|
||||
namespace AssetStudio
|
||||
{
|
||||
public static class SpriteExtensions
|
||||
{
|
||||
public static bool TryGetImage(this Sprite m_Sprite, out Image<Bgra32> spriteImage, SpriteMaskMode spriteMaskMode = SpriteMaskMode.On)
|
||||
{
|
||||
return new SpriteConverter(m_Sprite).TryConvertToImage(out spriteImage, spriteMaskMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user