 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jon Lennart Aasenden Guest
|
Posted: Mon Apr 19, 2004 10:35 am Post subject: device context problems |
|
|
Hi guys.
I have coded a small dll library for working with offscreen surfaces.
Everything is coded from scratch, including the surface types, to make it as
a fast as possible.
The databuffer for each surface is in a top-down, dib compatible format,
supporting 8,16,24 & 32 bpp.
Is there any way for me to load a raw memory buffer into a TBitmap or any
hDC from memory? Can i get a pointer to a hdc databuffer somewhere?
At this point, i am using move() to copy each rasterline into a TBitmap, but
that is a bit slow (but still workable). If would be faster to use one big
Move() instead.
Any help is welcome!
Jon Lennart Aasenden,
Norway
|
|
| Back to top |
|
 |
Jon Lennart Aasenden Guest
|
Posted: Mon Apr 19, 2004 11:12 am Post subject: Re: device context problems |
|
|
Found it!
SetBitmapBits() should do nicely..
Jon Lennart Aasenden
"Jon Lennart Aasenden" <post_nospam_nojunk (AT) hexmonks (DOT) net> wrote
| Quote: | Hi guys.
I have coded a small dll library for working with offscreen surfaces.
Everything is coded from scratch, including the surface types, to make it
as
a fast as possible.
The databuffer for each surface is in a top-down, dib compatible format,
supporting 8,16,24 & 32 bpp.
Is there any way for me to load a raw memory buffer into a TBitmap or any
hDC from memory? Can i get a pointer to a hdc databuffer somewhere?
At this point, i am using move() to copy each rasterline into a TBitmap,
but
that is a bit slow (but still workable). If would be faster to use one big
Move() instead.
Any help is welcome!
Jon Lennart Aasenden,
Norway
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|