Pixmap
class Pixmap extends Userdata<"fz_pixmap"> { }
constructor(pointer: Pointer<"fz_pixmap">);
asJPEG(quality: number, invert_cmyk: boolean): Uint8Array;
asPAM(): Uint8Array;
asPNG(): Uint8Array;
asPSD(): Uint8Array;
clear(value?: number): void;
gamma(p: number): void;
getAlpha(): number;
getBounds(): number[];
getColorSpace(): ColorSpace | null;
getHeight(): number;
getNumberOfComponents(): number;
getPixels(): Uint8ClampedArray;
getStride(): number;
getWidth(): number;
getX(): number;
getXResolution(): number;
getY(): number;
getYResolution(): number;
invert(): void;
invertLuminance(): void;
setResolution(x: number, y: number): void;
tint(black: number | Color, white: number | Color): void;