Пример #1
0
 public static void ToBin(SegaSaturnTexture texture, string path, bool header)
 {
     using (Stream stream = File.Create(path))
     {
         SegaSaturnImageConverter.ToBin(texture, stream, header);
     }
 }
Пример #2
0
 public static void ToBin(Bitmap bmp, string path, bool header)
 {
     using (Stream stream = File.Create(path))
     {
         SegaSaturnImageConverter.ToBin(bmp, stream, header);
     }
 }
Пример #3
0
 public static void To24BitsTga(Bitmap bitmap, string path, SegaSaturnColor transparentColor = null)
 {
     using (Stream file = File.Create(path))
     {
         SegaSaturnImageConverter.To24BitsTga(bitmap, file, transparentColor);
     }
 }
Пример #4
0
 public static void To24BitsTga(SegaSaturnTexture texture, Stream output, SegaSaturnColor transparentColor = null)
 {
     using (Bitmap bmp = SegaSaturnImageConverter.ToBitmap(texture))
     {
         SegaSaturnImageConverter.To24BitsTga(bmp, output, transparentColor);
     }
 }
Пример #5
0
 public static void ToPng(SegaSaturnTexture texture, string path, SegaSaturnColor transparentColor = null)
 {
     SegaSaturnImageConverter.ToBitmap(texture, transparentColor).Save(path, ImageFormat.Png);
 }
Пример #6
0
 public static SegaSaturnTexture LoadTextureFromFile(string path, SegaSaturnColor transparentColor = null)
 {
     return(SegaSaturnImageConverter.LoadFromBitmap(SegaSaturnImageConverter.LoadBitmapFromFile(path), transparentColor));
 }