@mescius/dsimageviewer
Version:
Document Solutions Image Viewer
21 lines (20 loc) • 1.33 kB
TypeScript
//@ts-ignore
import { Color } from "@grapecity/core-ui";
import { Bounds } from "../Models/SelectionBoxTypes";
export declare function getPixelColor(x: number, y: number, context: CanvasRenderingContext2D): string;
export declare function detectAndFillRegions(x: number, y: number, sourceContext: CanvasRenderingContext2D, xyOffset: {
x: number;
y: number;
}): {
paths: Path2D[];
bounds?: Bounds;
};
export declare function ensureColorType(colorValue: Color | string | null | undefined, defaulltHexColor?: string): Color;
export declare function colorToDispayLabel(color?: string | any): string;
export declare function rgbToHex(val: number[] | string): string;
export declare function hexToRgb(hex: string | any): number[] | null;
export declare function darkerColor(color: string | Uint8ClampedArray | number[], coef?: number): string | null;
export declare function enlightColor(color: string | Uint8ClampedArray | number[], englight?: number): string | null;
export declare function applyColorOpacity(color: string | Uint8ClampedArray | number[], opacity?: number): string | null;
export declare function toCssColor(colorVal?: string | number[] | Uint8ClampedArray | null, defaultCssVal?: string): string;
export declare function getLocalizedWebColorNames(in17n: any): Record<string, string>;