15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


How to get bmp of OLE objects ?

Narayana GVL -- NARI@wipsys.stph.net
Tuesday, August 06, 1996

Environment: VC++ 4.0, Win 95

I'm developing an OLE container application. This container 
application allows only one server CANVAS95. I need bitmap 
data of the OLE objects that are created using CANVAS server. 
I thought i can copy the OLE object to clipboard by using the 
call OleCopyToClipboard() and extract the bitmap data from the 
clipboard. But i found only picture (Metafile) data on clipboard.
How do i get bitmap data of this object ? 

I need to send this OLE object's data to a Marker Machine which 
accepts only bitmap data. 

Regards,

GVL Narayana
Systems Engineer
Wipro Systems
Hyderabad
INDIA. 




Mike Blaszczak -- mikeblas@nwlink.com
Friday, August 09, 1996

At 11:32 AM 8/6/96 +0530, you wrote:

>I'm developing an OLE container application. This container 
>application allows only one server CANVAS95. 

>How do i get bitmap data of this object ? 

I've never heard of CANVAS95.  But it's possible that this server doesn't
provide bitmap renderings of its own self: not every object supports every
kind of data format.

You should query the object to see if it really does support this format,
or you should write the vendor of the object and ask them.  Or, you should
rewrite the object so it does provide bitmapped renderings.  If you strike
out, you can start working on a way to convert a metafile to a bitmap.

.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |