public static void ToBin(SegaSaturnTexture texture, string path, bool header) { using (Stream stream = File.Create(path)) { SegaSaturnImageConverter.ToBin(texture, stream, header); } }
public static void ToBin(Bitmap bmp, string path, bool header) { using (Stream stream = File.Create(path)) { SegaSaturnImageConverter.ToBin(bmp, stream, header); } }
public static void To24BitsTga(Bitmap bitmap, string path, SegaSaturnColor transparentColor = null) { using (Stream file = File.Create(path)) { SegaSaturnImageConverter.To24BitsTga(bitmap, file, transparentColor); } }
public static void To24BitsTga(SegaSaturnTexture texture, Stream output, SegaSaturnColor transparentColor = null) { using (Bitmap bmp = SegaSaturnImageConverter.ToBitmap(texture)) { SegaSaturnImageConverter.To24BitsTga(bmp, output, transparentColor); } }
public static void ToPng(SegaSaturnTexture texture, string path, SegaSaturnColor transparentColor = null) { SegaSaturnImageConverter.ToBitmap(texture, transparentColor).Save(path, ImageFormat.Png); }
public static SegaSaturnTexture LoadTextureFromFile(string path, SegaSaturnColor transparentColor = null) { return(SegaSaturnImageConverter.LoadFromBitmap(SegaSaturnImageConverter.LoadBitmapFromFile(path), transparentColor)); }