"Frank" wrote:
On the Internet there are many descriptions of the memory layout for a DIB.
But none that I can find for a Bitmap.
Do you mean the System.Drawing. Bitmap class?
If so, use the LockBits method to access the image data. It provides you
with a BitmapData object that contains the information you need to
access the data. You don't have to bother about details of the memory
layout, like if it's stored top-down or bottom-up.
Is that because a Bitmap's layout depends on a related device.
What related device? The layout depends on the pixel format of the bitmap.
If that's the case, is a clipboard's Bitmap layout always related to the
screen?
Why would it be? Any program can place a Bitmap in the clipboard, so the
format would be decided by the program.
--
Göran Andersson
_____
http://www.guffa.com