Skip to content

Commit

Permalink
docs/pixmap.rst: minor fix to Pixmap constructor docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Jun 20, 2024
1 parent ccfd7aa commit 1c14fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pixmap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Have a look at the :ref:`FAQ` section to see some pixmap usage "at work".

.. class:: Pixmap

.. method:: __init__(self, colorspace, irect, alpha)
.. method:: __init__(self, colorspace, irect, alpha=False)

**New empty pixmap:** Create an empty pixmap of size and origin given by the rectangle. So, *irect.top_left* designates the top left corner of the pixmap, and its width and height are *irect.width* resp. *irect.height*. Note that the image area is **not initialized** and will contain crap data -- use eg. :meth:`clear_with` or :meth:`set_rect` to be sure.

Expand Down

0 comments on commit 1c14fbd

Please sign in to comment.