Grx.query_pnm_data

function query_pnm_data(data: ByteArray): [ok: Boolean, format: Grx.PnmFormat, width: Number(gint), height: Number(gint), maxval: Number(gint)] {
    // Gjs wrapper for grx_query_pnm_data()
}
  

Query format, width and height data from a PNM buffer

data

The image data

ok

true on success, otherwise false

format

the Grx.PnmFormat of the file

width

return pnm width

height

return pnm height

maxval

max color component value