Skip to content

record size issue #1

@luoyunfeng2016

Description

@luoyunfeng2016

MS-WMF.pdf

Hello, i think this code has some issue. According to the wmf format specification:

  1. For the record type META_STRETCHBLT and META_DIBSTRETCHBLT, no matter the record with bitmap data or not, the data member "SrcHeight" and "SrcWidth" should exist.
    therefor, the file "WmfStretchBltRecord.cs" (line 76, 80) and "WmfDIBStretchBltRecord.cs" (line 76, 80) is wrong.
    If without bitmap data, the record length should be 28, not 24. and at line 80, need not this condition "if (!isWithoutBitmap)".
    2.For the record type META_STRETCHDIB, wmf format specification doesn't refer to "without bitmap data", so, i think line 82 in file "WmfDIBStretchBltRecord.cs" is unnecessary, this record type must be 28 bytes and some DIB data bytes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions