Tomas
Tomas

Reputation: 621

How to save DDB to file?

I wanted to ask if it is possible to save DDB to file ? I know that you can save DIB, so it means that I would need to convert DDB to DIB before saving. Is there any other way ? thx

Upvotes: 0

Views: 227

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 595981

A "Device Dependant" DDB bitmap is dependant on the display device to interpret its pixel data. A file is not dependant on the display device. So the answer is no, you cannot save a DDB to a file and have it be a meaningful .BMP file. It has to be saved as a "Device Independant" DIB bitmap instead. Besides, that is what the official .BMP file specification requires anyway.

Upvotes: 1

Related Questions