You can use the DuplicateHandle Win32 API function
to create a handle to a graphical object in a
different process. There are access restrictions
and all that to worry about naturally.
But if performance is an issue i'd expect that to
be much faster than sharing a memorymapped
metafile or allocating the memory yourself
and writing DIB data to it.
-ns
----- Original Message -----
From: "Phil Scadden" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 8:59 AM
Subject: [DUG]: Sharing a bitmap between processes
> And for something completely different...
>
> I want one process to be able to share a bitmap with another process.
Since you
> cant share win handles, then somehow need to get bitmap into shared
memory.
> Writetomemorystream perhaps? There isnt by any chance some arcane
windows
> lore on sharing such an object?
>
>
> ----------------------------------------------------------
> Phil Scadden, Institute of Geological and Nuclear Sciences
> 41 Bell Rd South, PO Box 30368, Lower Hutt, New Zealand
> Ph +64 4 5704821, fax +64 4 5704603
> ----------------------------------------------------------------------
-----
> New Zealand Delphi Users group - Delphi List -
[EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/