MFC 获取图像的大小
// 获致图像的大小 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; }
原来可以如此简单
记录我在学习C#中的点点滴滴,记录下以备后来人借鉴。
// 获致图像的大小 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; }
原来可以如此简单