mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
missing BinaryStream update.
This commit is contained in:
parent
364049f72a
commit
31e420c094
@ -44,7 +44,7 @@ namespace GARbro
|
|||||||
|
|
||||||
void PrintMetaData (string filename)
|
void PrintMetaData (string filename)
|
||||||
{
|
{
|
||||||
using (var file = File.Open (filename, FileMode.Open, FileAccess.Read))
|
using (var file = BinaryStream.FromFile (filename))
|
||||||
{
|
{
|
||||||
var format = ImageFormat.FindFormat (file);
|
var format = ImageFormat.FindFormat (file);
|
||||||
if (null == format)
|
if (null == format)
|
||||||
@ -60,7 +60,7 @@ namespace GARbro
|
|||||||
void ConvertFile (string filename, ImageFormat format)
|
void ConvertFile (string filename, ImageFormat format)
|
||||||
{
|
{
|
||||||
ImageData image;
|
ImageData image;
|
||||||
using (var file = File.Open (filename, FileMode.Open, FileAccess.Read))
|
using (var file = BinaryStream.FromFile (filename))
|
||||||
{
|
{
|
||||||
image = ImageFormat.Read (file);
|
image = ImageFormat.Read (file);
|
||||||
if (null == image)
|
if (null == image)
|
||||||
|
Loading…
Reference in New Issue
Block a user