Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Pixmap

class Pixmap extends Userdata<"fz_pixmap"> {
constructor(pointer: Pointer<"fz_pixmap">);
constructor(
colorspace: ColorSpace,
bbox: Rect,
alpha: boolean,
);
asJPEG(quality: number, invert_cmyk: boolean): Uint8Array;
asPAM(): Uint8Array;
asPNG(): Uint8Array;
asPSD(): Uint8Array;
clear(value?: number): void;
convertToColorSpace(colorspace: ColorSpace, keepAlpha?: boolean): Pixmap;
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;
warp(
points: Point[],
width: number,
height: number,
): Pixmap;
 
static readonly _drop: (p: Pointer<"fz_pixmap">) => void;
}

§Extends

§
Userdata<"fz_pixmap">
[src]

§Constructors

§
new Pixmap(pointer: Pointer<"fz_pixmap">)
[src]
§
new Pixmap(colorspace: ColorSpace, bbox: Rect, alpha: boolean)
[src]

§Methods

§
asJPEG(quality: number, invert_cmyk: boolean): Uint8Array
[src]
§
asPAM(): Uint8Array
[src]
§
asPNG(): Uint8Array
[src]
§
asPSD(): Uint8Array
[src]
§
clear(value?: number): void
[src]
§
convertToColorSpace(colorspace: ColorSpace, keepAlpha?: boolean): Pixmap
[src]
§
gamma(p: number): void
[src]
§
getAlpha(): number
[src]
§
getBounds(): number[]
[src]
§
getColorSpace(): ColorSpace | null
[src]
§
getHeight(): number
[src]
§
getNumberOfComponents(): number
[src]
§
getPixels(): Uint8ClampedArray
[src]
§
getStride(): number
[src]
§
getWidth(): number
[src]
§
getX(): number
[src]
§
getXResolution(): number
[src]
§
getY(): number
[src]
§
getYResolution(): number
[src]
§
invert(): void
[src]
§
invertLuminance(): void
[src]
§
setResolution(x: number, y: number): void
[src]
§
tint(black: number | Color, white: number | Color): void
[src]
§
warp(points: Point[], width: number, height: number): Pixmap
[src]

§Static Properties

§
_drop: (p: Pointer<"fz_pixmap">) => void
[src]