CPaintDC dc(this);
IPicture *ppic;
IStream *pstrm;
.......OLE_XSIZE_HIMETRIC hmWidth;
OLE_YSIZE_HIMETRIC hmHeight;
ppic->SetWidth(&hmWidth);
ppic->SetHeight(&hmHeight);
....
dc.GetDevicecps(HORZSIZE);
....
if(FAILED(ppic->Render(dc,0,0,(DWORD)fx,(DWORD)fy,0,hmHeigth,hmWidth,-hmHeight,0,0))){
....
}