Skip to content

Commit 732a73e

Browse files
committed
Fix image rotation / mirror
1 parent 1163e8b commit 732a73e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/App.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ function App() {
160160
W = width
161161
H = height
162162
}
163-
163+
// ctx.translate(W, 0);
164+
ctx.scale(-1, 1);
165+
ctx.rotate(3.14/2);
164166
ctx.drawImage(imageData, X, Y, W, H);
165167
FilterCanvas(canvas, filter)
166168
setStringImage(buildImageString(canvas, `Size: ${width}x${height} - from Teske's Lab & Whiplash141`))

0 commit comments

Comments
 (0)