Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.88 KB

_services_canvasservice_.md

File metadata and controls

71 lines (45 loc) · 1.88 KB

jpegasus

Globals / "services/canvasService"

Module: "services/canvasService"

Index

Functions

Functions

correctExifRotation

ConstcorrectExifRotation(context: CanvasTransform, orientation: number, height: number, width: number): void

Defined in services/canvasService.ts:20

Parameters:

Name Type
context CanvasTransform
orientation number
height number
width number

Returns: void


create

Constcreate(file: File, image: HTMLImageElement, scale: number, __namedParameters: { fixImageOrientation: boolean ; transparencyFillColor: string }): Promise<HTMLCanvasElement>

Defined in services/canvasService.ts:48

Parameters:

Name Type
file File
image HTMLImageElement
scale number
__namedParameters { fixImageOrientation: boolean ; transparencyFillColor: string }

Returns: Promise<HTMLCanvasElement>


setCanvasDimensions

ConstsetCanvasDimensions(canvas: HTMLCanvasElement, orientation: number, fixImageOrientation: boolean, scaledHeight: number, scaledWidth: number): void

Defined in services/canvasService.ts:4

Parameters:

Name Type
canvas HTMLCanvasElement
orientation number
fixImageOrientation boolean
scaledHeight number
scaledWidth number

Returns: void