Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Re: getting bit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 6011 of 6154
Post > Topic >>

Re: getting bitmap from memory

by "Maarten Wiltink" <maarten@[EMAIL PROTECTED] > Mar 13, 2008 at 03:09 PM

"jodleren" <sonnich@[EMAIL PROTECTED]
> wrote in message
news:fd1147bd-ce84-43bb-abaa-642d5d46a848@[EMAIL PROTECTED]
> I get a pointer to a place in memory, which contains a bitmap.
> Size is know, H*W as well as it is 24 bit colour.
> How do I get that out to a TBitmap?

Blit it. Read up on the memory structure of a bitmap, allocate one
(undoubtedly a TBitmap contains the BITMAPINFO and pixel data
somewhere), and copy either all the bytes if you can guarantee
that the layout is the same in both places, or all the pixels one
by one if you can't. (Don't be too afraid to do the latter if you
must; it's not that bad.)

Groetjes,
Maarten Wiltink
 




 7 Posts in Topic:
getting bitmap from memory
jodleren <sonnich@[EMA  2008-03-13 07:03:10 
Re: getting bitmap from memory
"Maarten Wiltink&quo  2008-03-13 15:09:57 
Re: getting bitmap from memory
"alanglloyd@[EMAIL P  2008-03-13 07:53:07 
Re: getting bitmap from memory
jodleren <sonnich@[EMA  2008-03-13 09:06:06 
Re: getting bitmap from memory
jodleren <sonnich@[EMA  2008-03-13 09:24:02 
Re: getting bitmap from memory
"alanglloyd@[EMAIL P  2008-03-13 15:36:03 
Re: getting bitmap from memory
Ivan Levashew <octagra  2008-03-15 07:33:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:02:08 CDT 2008.