コード例 #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));
 }