Skip to content

Commit 07a5079

Browse files
authored
Docs: correct the type for BMP x/y density (#4695)
These values are read & written as integers and don't work unless they are accessed using int accessors. m_dib_header.hres = m_spec.get_int_attribute("XResolution"); Correct documentation. BMP uses integer access: - `./src/bmp.imageio/bmpinput.cpp:`, `m_spec.attribute("XResolution", (int)m_dib_header.hres);` - `./src/bmp.imageio/bmpoutput.cpp`, `m_dib_header.hres = m_spec.get_int_attribute("XResolution");` Signed-off-by: Campbell Barton <ideasman42@gmail.com>
1 parent 0a3adc2 commit 07a5079

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/doc/builtinplugins.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ tiles.
4242
- The compression of the BMP file (``"rle4"`` or ``"rle8"``, if
4343
RLE compression is used).
4444
* - ``XResolution``
45-
- float
45+
- int
4646
- hres
4747
* - ``YResolution``
48-
- float
48+
- int
4949
- vres
5050
* - ``ResolutionUnit``
5151
- string

0 commit comments

Comments
 (0)