home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8647 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.9 KB

  1. 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
  2. From: lfosdal@falcon.no (Lars Fosdal)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: TPW: How to get a pointer from a handle
  5. Message-ID: <mwR3XB3w165w@falcon.no>
  6. Date: 28 Jan 93 07:58:45 GMT
  7. References: <focke.158.728131988@gmd.de>
  8. Organization: Falcon Information Services AS, Oslo, Norway
  9. Lines: 39
  10.  
  11. focke@gmd.de (Stefan Focke) writes:
  12.  
  13. > In article <9ysZXB1w165w@falcon.no> lfosdal@falcon.no (Lars Fosdal) writes:
  14. > >  :
  15. > >  IF GetObject(hBM, SizeOf(TBitMap), @BM)<>0
  16. > >  THEN BEGIN {We've got a valid bitmap)
  17. > >    BM.bmBits now points to the bitmap bits.
  18. > >  END;
  19. > Ok, I tried this:
  20. [...deleted some lines...] 
  21. >      BM.bmBits = nil
  22. > So, this function does not help.
  23.  
  24. I don't know why it doesn't work...(I must admit I didn't try it...)
  25.  
  26.  
  27. > 2)  GetObject with a TLogBrush-parameter has no address entry.
  28.  
  29. If TLogBrush.lbStyle is bs_DIBPattern, the TLogBrush.lbHatch field
  30. is supposed to be a handle to a packed DIB, according to the doc's. 
  31.  
  32. > 3)  I need a fast output of colored rectangels. PatBlt seems to be the 
  33. >     fastes GDI-function. But it is not fast enough. So I would like to write 
  34. >     directly to memory. I try serveral possiblities, for example bitmaps. 
  35. >     Writing into a buffer and transfering it with SetBitmapBits to the 
  36. >     bitmap is to slow. I would like to write directly to bitmap-memory. 
  37.  
  38. Have you examined the SetDIBitsToDevice (WinProcs unit) function ?
  39.  
  40. > Stefan 
  41.  
  42. Lars F.
  43. --
  44. / Mr.Lars Fosdal              / Falcon AS            / lfosdal@falcon.no  /
  45. / Software Developer          / Stranden 1           / Tel. +47 22831310  /
  46. / Financial Analysis Systems  / N-0250 OSLO, Norway  / Fax. +47 22831290  /
  47. ----=* All opinions are personal and does not reflect company policy *=----
  48.