Grx.query_pnm_file

@accepts(filename, Grx.PnmFormat, int, int, int)
@returns(bool)
def query_pnm_file(filename, format, width, height, maxval):
    # Python wrapper for grx_query_pnm_file()
  

Query format, width and height data from a PNM file

filename

Name of pnm file

format

the Grx.PnmFormat of the file

width

return pnm width

height

return pnm height

maxval

max color component value

Returns