1PDF::Builder::Resource:U:sXeOrbjCeocntt:r:iPIbDmuFat:ge:edB:u:PiPelNrdMle(r3D:)o:cRuemseonutractei:o:nXObject::Image::PNM(3)
2
3
4
6 PDF::Builder::Resource::XObject::Image::PNM - support routines for PNM
7 (Portable aNy Map) image library. Inherits from
8 PDF::Builder::Resource::XObject::Image
9
10 METHODS
11 =new($pdf, $file, $name)
12
13 Returns an image in the PDF. PNM types 1 (ASCII/plain
14 bi-level/PBM), 2 (ASCII/plain grayscale/PGM), 3 (ASCII/plain
15 RGB/PPM), 4 (binary/raw bi-level/PBM), 5 (binary/raw
16 grayscale/PGM), and 6 (binary/raw RGB/PPM) are supported.
17
18 For bi-level, only values 0/1 (white/black) are supported. For
19 grayscale, the maximum sample (full white) may be anything from 1
20 to 65535, with 0 being full black. If the maximum sample value is
21 255 or smaller, one byte of raw binary data per pixel, otherwise
22 two bytes. For RGB, each sample (full-on of that color) may be
23 anything from 1 to 65535 (the same maximum for all three colors),
24 with 0 being full black. If the maximum sample value is 255 or
25 smaller, three bytes of raw binary data per pixel, otherwise six
26 bytes.
27
28
29
30perl v5.32.1 PD2F0:2:1B-u0i3l-d2e9r::Resource::XObject::Image::PNM(3)