Sets the pixel values of the PNM image.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(format_pnm), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in), | dimension(:,:) | :: | pixels |
pure subroutine set_pixels(this, pixels) class(format_pnm), intent(inout) :: this integer(ik), dimension(:,:), intent(in) :: pixels call this%check_pixel_range(pixels) this%pixels = pixels end subroutine set_pixels