Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miyako authored Aug 18, 2022
1 parent 97f3308 commit 290053c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,26 @@ EXIFタグで向きが設定された画像を[READ PICTURE FILE](https://doc.4d
SVGの*transform*で回転させることもできますが,**アフィン変換**による回転になるため,画素数が多い写真の回転はそこそこ時間がかかります。

`90`°または`270`°の回転さえできれば良いことを考えると,もっとシンプルな方法が理想的です。

## プラグイン

内部的に[OpenCV](https://opencv.org)`cv::rotate`をコールするだけの簡単なプラグインです。

#### 定数

* ROTATE_90_CLOCKWISE (90)
* ROTATE_180 (180)
* ROTATE_90_COUNTERCLOCKWISE (279)
* ROTATE_0 (0)

```4d
status:=Rotate image(image; rotate; format)
```

#### 例題

フォームを表示すると画像が縦向きに表示されます。Finderでは横向きに表示される写真です。

<img width="721" alt="finder" src="https://user-images.githubusercontent.com/1725068/185327490-af028cf6-9ee2-41f7-b336-2f157d13e62a.png">
<img width="499" alt="ss" src="https://user-images.githubusercontent.com/1725068/185326430-f99191fc-9978-4abe-8ca1-704b074aa9d2.png">

0 comments on commit 290053c

Please sign in to comment.