Skip to content

Commit dfbfd2c

Browse files
ideasman42lgritz
authored andcommitted
Docs: correct the type for BMP x/y density (AcademySoftwareFoundation#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 <[email protected]>
1 parent 77395cb commit dfbfd2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)