Add Linear method definition (#26806)

This commit is contained in:
hellraisercenobit
2018-07-02 10:23:42 -07:00
committed by Mohamed Hegazy
parent efe2163873
commit d107181642
+8
View File
@@ -332,6 +332,14 @@ declare namespace sharp {
* @throws {Error} Invalid parameters
* @returns A sharp instance that can be used to chain operations
*/
linear(multiplier?: number, offset?: number): SharpInstance;
/**
* Apply a gamma correction by reducing the encoding (darken) pre-resize at a factor of 1/gamma then increasing the encoding (brighten) post-resize at a factor of gamma.
* @param multiplier value between 0.0 and 1.0. (optional, default 1.0)
* @param offset value between 0.0 and 1.0. (optional, default 0.0)
* @throws {Error} Invalid parameters
* @returns A sharp instance that can be used to chain operations
*/
boolean(operand: string | Buffer, operator: string, options?: { raw: Raw }): SharpInstance;
/**
* Write output image data to a file.