home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!decwrl!olivea!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!aun.uninett.no!nuug!falcon!lfosdal
- From: lfosdal@falcon.no (Lars Fosdal)
- Newsgroups: comp.lang.pascal
- Subject: Re: TPW: How to get a pointer from a handle
- Message-ID: <mwR3XB3w165w@falcon.no>
- Date: 28 Jan 93 07:58:45 GMT
- References: <focke.158.728131988@gmd.de>
- Organization: Falcon Information Services AS, Oslo, Norway
- Lines: 39
-
- focke@gmd.de (Stefan Focke) writes:
-
- > In article <9ysZXB1w165w@falcon.no> lfosdal@falcon.no (Lars Fosdal) writes:
- > > :
- > > IF GetObject(hBM, SizeOf(TBitMap), @BM)<>0
- > > THEN BEGIN {We've got a valid bitmap)
- > > BM.bmBits now points to the bitmap bits.
- > > END;
- > Ok, I tried this:
- [...deleted some lines...]
- > BM.bmBits = nil
- >
- > So, this function does not help.
-
- I don't know why it doesn't work...(I must admit I didn't try it...)
-
-
- > 2) GetObject with a TLogBrush-parameter has no address entry.
-
- If TLogBrush.lbStyle is bs_DIBPattern, the TLogBrush.lbHatch field
- is supposed to be a handle to a packed DIB, according to the doc's.
-
- > 3) I need a fast output of colored rectangels. PatBlt seems to be the
- > fastes GDI-function. But it is not fast enough. So I would like to write
- > directly to memory. I try serveral possiblities, for example bitmaps.
- > Writing into a buffer and transfering it with SetBitmapBits to the
- > bitmap is to slow. I would like to write directly to bitmap-memory.
-
- Have you examined the SetDIBitsToDevice (WinProcs unit) function ?
-
- >
- > Stefan
-
- Lars F.
- --
- / Mr.Lars Fosdal / Falcon AS / lfosdal@falcon.no /
- / Software Developer / Stranden 1 / Tel. +47 22831310 /
- / Financial Analysis Systems / N-0250 OSLO, Norway / Fax. +47 22831290 /
- ----=* All opinions are personal and does not reflect company policy *=----
-