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

ColorSpace

class ColorSpace extends Userdata<"fz_colorspace"> {
constructor(profile: AnyBuffer, name: string);
constructor(pointer: Pointer<"fz_colorspace">);
getName(): string;
getNumberOfComponents(): number;
getType(): ColorSpaceType;
isCMYK(): boolean;
isDeviceN(): boolean;
isGray(): boolean;
isIndexed(): boolean;
isLab(): boolean;
isRGB(): boolean;
isSubtractive(): boolean;
toString(): string;
 
static readonly _drop: (p: Pointer<"fz_colorspace">) => void;
static readonly COLORSPACE_TYPES: ColorSpaceType[];
static readonly DeviceBGR: ColorSpace;
static readonly DeviceCMYK: ColorSpace;
static readonly DeviceGray: ColorSpace;
static readonly DeviceRGB: ColorSpace;
static readonly Lab: ColorSpace;
}

§Extends

§
Userdata<"fz_colorspace">
[src]

§Constructors

§
new ColorSpace(profile: AnyBuffer, name: string)
[src]
§
new ColorSpace(pointer: Pointer<"fz_colorspace">)
[src]

§Methods

§
getName(): string
[src]
§
getNumberOfComponents(): number
[src]
§
getType(): ColorSpaceType
[src]
§
isCMYK(): boolean
[src]
§
isDeviceN(): boolean
[src]
§
isGray(): boolean
[src]
§
isIndexed(): boolean
[src]
§
isLab(): boolean
[src]
§
isRGB(): boolean
[src]
§
isSubtractive(): boolean
[src]
§
toString(): string
[src]

§Static Properties

§
_drop: (p: Pointer<"fz_colorspace">) => void
[src]
§
COLORSPACE_TYPES: ColorSpaceType[]
[src]
§
DeviceCMYK: ColorSpace
[src]
§
DeviceGray: ColorSpace
[src]