Load bmp from clipboard (OpenInsight 32-bit Specific)
At 10 APR 2002 07:45:33PM Roman wrote:
How can I load an image from clipboard into a bitmap control?
Thanks in advance,
Roman
At 11 APR 2002 07:24AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Roman,
How can I load an image from clipboard into a bitmap control?
Short answer is you can't as you'd need some sort of direct access to the bitmap handle and memory that the bitmap control is using and this is not exposed by OI (more's the pity ).
You could however draw thw bitmap yourself using GDI and/or the ImageMan DLL that ships with OI if you want to venture into the world of Windows API programming!
World leaders in all things RevSoft
At 11 APR 2002 10:53AM Oystein Reigem wrote:
Roman,
Why is it you want to do that? Perhaps there are alternatives.
- Oystein -
At 11 APR 2002 02:07PM Roman wrote:
I`m scanning a document using third-party dll and the resulting image is stored in Clipboard. Scanning directly into a file hangs up the system for unknown reasons. So I used the Clipboard as a workaround and it works fine.
I don`t mind using API calls. I looked into imgman32.dll which Spezzatura suggested and it looks useful for our purpose. But how can I find out which functions to use and what their parameters are?