Sets the magic number of the PNM image. Supported values are P1
, P2
, P3
, P4
, P5
, and P6
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(format_pnm), | intent(inout) | :: | this | |||
character(len=*), | intent(in) | :: | magic_number |
elemental pure subroutine set_magicnumber(this, magic_number) class(format_pnm), intent(inout) :: this character(*), intent(in) :: magic_number this%magic_number = magic_number end subroutine set_magicnumber