none
How interpret MS-EMF BitmapBuffer structures? RRS feed

  • Question

  • For example EMR_BITBLT.BitmapBuffer andEMR_ALPHABLEND.BitmapBuffer.

    How interpret their fields?

    Their are bitmap or directly pixels?

    Tuesday, July 28, 2015 2:49 PM

Answers

  • Hello box0547,

    From the [MS-EMF] document:

    2.3.1 Bitmap Record Types
    ...

    The following notes apply generally to EMF bitmap block transfers, unless specified otherwise:
     Source and mask bitmaps are in DIB format. DIBs are specified by DeviceIndependentBitmap objects ([MS-WMF] section 2.2.2.9).

    Based on that, the contents of the buffer should be a DIB, which is further documented in [MS-WMF]:
    2.2.2.9 DeviceIndependentBitmap Object
    The DeviceIndependentBitmap Object defines an image in device-independent bitmap (DIB) format.

    The details of what would be contained in the buffer is then composed of the fields as described by [MS-WMF]. Have you looked through those descriptions? If so, are you looking for additional information that is not described in those fields?

    Thanks,
    Kamil Sykora

    Tuesday, July 28, 2015 7:56 PM

All replies

  • Hello box0547,

    Thank you for reposting your question as a new forum topic. I'll provide responses in this new thread.

    Thanks,
    Kamil Sykora

    Tuesday, July 28, 2015 3:13 PM
  • Hello box0547,

    From the [MS-EMF] document:

    2.3.1 Bitmap Record Types
    ...

    The following notes apply generally to EMF bitmap block transfers, unless specified otherwise:
     Source and mask bitmaps are in DIB format. DIBs are specified by DeviceIndependentBitmap objects ([MS-WMF] section 2.2.2.9).

    Based on that, the contents of the buffer should be a DIB, which is further documented in [MS-WMF]:
    2.2.2.9 DeviceIndependentBitmap Object
    The DeviceIndependentBitmap Object defines an image in device-independent bitmap (DIB) format.

    The details of what would be contained in the buffer is then composed of the fields as described by [MS-WMF]. Have you looked through those descriptions? If so, are you looking for additional information that is not described in those fields?

    Thanks,
    Kamil Sykora

    Tuesday, July 28, 2015 7:56 PM
  • Hello,

    thanks, that's what i searched.

    About DeviceIndependentBitmap did not read, i read 2.3.1.1 EMR_ALPHABLEND Record, where it is written only

    BmiSrc (variable): The source bitmap header.
    BitsSrc (variable): The source bitmap bits.

    without description of the structure.


    Wednesday, July 29, 2015 6:22 AM