BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

device context problems

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Jon Lennart Aasenden
Guest





PostPosted: Mon Apr 19, 2004 10:35 am    Post subject: device context problems Reply with 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
Jon Lennart Aasenden
Guest





PostPosted: Mon Apr 19, 2004 11:12 am    Post subject: Re: device context problems Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.