.. highlightlang:: us .. index:: ImageSetPixelGray .. _imagesetpixelgray: ImageSetPixelGray ================= .. us.tag ImageSetPixelGray NOTREADYENGLISH Image ImageGet New532 :ref:`ImageSetPixelGray` sets the gray value of a pixel or complete bitmap. .. function:: bool = ImageSetPixelGray(hImg, x, y, g) bool = ImageSetPixelGray(hImg, m) .. us.return **Return Value** *bool*. .. us.params **Parameters** .. uparam:: hImg *hImg* identifies the picture created with :ref:`ImageCreate`. .. uparam:: x *x* is the horizontal pixel position in the range 1 to :ref:`ImageGetWidth`. .. uparam:: y *y* is the vertical pixel position in the range 1 to :ref:`ImageGetHeight`. .. uparam:: g *g* is the gray value of the specified pixel in the range 0 to 255. .. uparam:: m *m* is a matrix with gray values in the range 0 to 255. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.3.2 - New .. seealso:: :ref:`overview-pictures`, :ref:`ImageCreate`, :ref:`ImageGetPixelGray`, :ref:`ImageGetWidth`, :ref:`ImageGetHeight` :sub:`id-568995`