浏览代码

libpipi: the GDI+ codec defaults to BMP when the file extension is unknown.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3078 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 年前
父节点
当前提交
44b5817450
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      pipi/codec/gdiplus.cpp

+ 2
- 0
pipi/codec/gdiplus.cpp 查看文件

@@ -90,6 +90,8 @@ extern "C" int pipi_save_gdiplus(pipi_image_t *img, const char *name)
fmt = L"image/png";
else if(strstr(name, ".tiff"))
fmt = L"image/tiff";
else /* if(strstr(name, ".bmp")) */
fmt = L"image/bmp";

unsigned int num = 0, size = 0;
Gdiplus::GetImageEncodersSize(&num, &size);


正在加载...
取消
保存