鹿我所录的博客

记录我在学习C#中的点点滴滴,记录下以备后来人借鉴。

 

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;
}

原来可以如此简单

posted on 2016-03-29 11:59  鹿我所录  阅读(1786)  评论(0编辑  收藏  举报

导航