GetThumbnailImage

王朝百科·作者佚名  2011-03-15
窄屏简体版  字體: |||超大  

GetThumbnailImage获得缩略图;

Image *GetThumbnailImage(

UINT thumbWidth, //宽度(像素)

UINT thumbHeight, //高度(像素)

GetThumbnailImageAbort callback,

VOID *callbackData);

callback 可选。您提供的回调函数。在创建或检索的缩略图图像处理,微软Windows GDI +中调用该函数,让您有机会中止这一进程。默认值是NULL。

callbackData可选。指针指向的内存块,它包含要由回调函数使用的数据。默认值是NULL

MSDN 例子

VOID Example_GetThumbnail(HDC hdc)

{

Graphics graphics(hdc);

// Create an image and a thumbnail of the image.

Image image(L"Crayons.jpg");

Image* pThumbnail = image.GetThumbnailImage(40, 40, NULL, NULL);

// Draw the original and the thumbnail images.

graphics.DrawImage(&image, 10, 10, image.GetWidth(), image.GetHeight());

graphics.DrawImage(

pThumbnail,

150,

10,

pThumbnail->GetWidth(),

pThumbnail->GetHeight());

delete pThumbnail;

}

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航