Community of VE/MapPoint Users and Developers
This is a discussion on MapPointUtilities within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; The MapPointUtilities::GetPictureFromObject method returns an IPicture object. I try to save this picture to a stream, unfortunately unsuccessfull... Any sugestions ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPointUtilities Any sugestions are welcome! my code looks like this: Code: CComPtr<MapPoint::_MapPointUtilities> pUtils(NULL);
hr = pUtils.CoCreateInstance(__uuidof(MapPoint::MapPointUtilities));
if(SUCCEEDED(hr))
{
LPDISPATCH pPictureDisp(NULL);
hr = pUtils->GetPictureFromObject(m_pMappointMap, 640, 480, &pPictureDisp);
if(SUCCEEDED(hr))
{
long cbSize(0);
IPicture* pPicture(NULL);
hr = pPictureDisp->QueryInterface(__uuidof(IPicture), (void**)&pPicture);
if(SUCCEEDED(hr))
{
SHORT sType(0);
hr = pPicture->get_Type(&sType);
hr = pPicture->SaveAsFile(pStream, TRUE, &cbSize);
}
pPicture->Release();
}
}
pUtils.Release();
|
| |||
| Re: MapPointUtilities
Hi there, The problem with GetPictureFromObject is that the Height and Withd of this function is in HiMetrics. Regarding msdn.com, visual basic references for MapPoint the minimal value must be 1100 for both ot them. Quote:
|
![]() |
| Tags |
| mappointutilities |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |