// 获致图像的大小 int CCImageDialog::GetImageSize(CSize& size, CString filename) { CImage image; image.Load(filename); int width = image.GetWidth(); int hight = image.GetHeight(); size.cx = width; size.cy = hight; return 0; }
原来可以如此简单
// 获致图像的大小 int CCImageDialog::GetImageSize(CSize& size, CString filename) { CImage image; image.Load(filename); int width = image.GetWidth(); int hight = image.GetHeight(); size.cx = width; size.cy = hight; return 0; }
原来可以如此简单