Commit 81111245 authored by mercury233's avatar mercury233

fix png support

parent 93f91691
......@@ -155,8 +155,8 @@ namespace ImgGen
{
Bitmap image = null;
string filename = "./pico/" + data.code.ToString() + ".jpg";
//if (!File.Exists(filename))
// filename = "./pico/" + data.code.ToString() + ".png";
if (!File.Exists(filename))
filename = "./pico/" + data.code.ToString() + ".png";
try
{
image = new Bitmap(filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment