jpegasus
Globals / "services/canvasService"
▸ Const
correctExifRotation(context
: CanvasTransform, orientation
: number, height
: number, width
: number): void
Defined in services/canvasService.ts:20
Name | Type |
---|---|
context |
CanvasTransform |
orientation |
number |
height |
number |
width |
number |
Returns: void
▸ Const
create(file
: File, image
: HTMLImageElement, scale
: number, __namedParameters
: { fixImageOrientation: boolean ; transparencyFillColor: string }): Promise<HTMLCanvasElement>
Defined in services/canvasService.ts:48
Name | Type |
---|---|
file |
File |
image |
HTMLImageElement |
scale |
number |
__namedParameters |
{ fixImageOrientation: boolean ; transparencyFillColor: string } |
Returns: Promise<HTMLCanvasElement>
▸ Const
setCanvasDimensions(canvas
: HTMLCanvasElement, orientation
: number, fixImageOrientation
: boolean, scaledHeight
: number, scaledWidth
: number): void
Defined in services/canvasService.ts:4
Name | Type |
---|---|
canvas |
HTMLCanvasElement |
orientation |
number |
fixImageOrientation |
boolean |
scaledHeight |
number |
scaledWidth |
number |
Returns: void