What does GDI use
BITMAPINFOHEADER.
and
SetBitmapDimensionEx
for?
Nothing.
The
BITMAPINFOHEADER.
and
BITMAPINFOHEADER.
are completely ignored by GDI when loading a bitmap.
The values are there for the benefit of image-editing programs
who want to record additional information about the bitmap,
but GDI ignores them.
Similarly, the
SetBitmapDimensionEx
and
GetBitmapDimensionEx
functions update a SIZE
structure
associated with each bitmap,
but GDI does nothing with the values,
aside from initializing them to zero when the bitmap is created.
The value is there so that, for example, a program which puts a bitmap on the clipboard can specify the recommended physical dimensions of the bitmap, in order to help another program that reads the bitmap from the clipboard (for example, a word processor) decide how big to resize the bitmap when it is pasted.
Whether any programs actually do this sort of thing I do not know.
But that's what it's there for, in case anybody wanted to do it.