![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
スクリーンショットに関連する機能 More...
Functions | |
| FilePath | GetScreenshotDirectory () |
| 現在設定されている、スクリーンショットの保存先のディレクトリを取得します。 More... | |
| void | SetScreenshotDirectory (FilePath &&path) |
| スクリーンショットの保存先のディレクトリを変更します。 More... | |
| void | SaveCurrentFrame (FilePath &&path=(DateTime::Now().format(U"yyyyMMdd-HHmmss-SSS")+U".png")) |
現在のフレームを次の System::Update() でスクリーンショットとして保存します。 More... | |
| void | RequestCurrentFrame () |
現在のフレームのスクリーンショットを、次の System::Update() でメモリ上に保存します。 More... | |
| bool | HasNewFrame () |
| メモリ上に新しいスクリーンショットが保存されているかを返します。 More... | |
| const Image & | GetFrame () |
| メモリ上に保存されているスクリーンショットを取得します。 More... | |
| bool | GetFrame (Image &image) |
| メモリ上に保存されているスクリーンショットを取得します。 More... | |
| bool | GetFrame (DynamicTexture &texture) |
| メモリ上に保存されているスクリーンショットを DynamicTexture に書き込みます。 More... | |
| void | SetShortcutKeys (const Array< InputGroup > &screenshotShortcutKeys) |
| スクリーンショットのショートカットキーを設定します。 More... | |
スクリーンショットに関連する機能
| const Image& s3d::ScreenCapture::GetFrame | ( | ) |
メモリ上に保存されているスクリーンショットを取得します。
| bool s3d::ScreenCapture::GetFrame | ( | DynamicTexture & | texture | ) |
メモリ上に保存されているスクリーンショットを DynamicTexture に書き込みます。
| texture | スクリーンショットの書き込み先 |
| bool s3d::ScreenCapture::GetFrame | ( | Image & | image | ) |
メモリ上に保存されているスクリーンショットを取得します。
| image | 取得した画像のコピー先 |
| FilePath s3d::ScreenCapture::GetScreenshotDirectory | ( | ) |
現在設定されている、スクリーンショットの保存先のディレクトリを取得します。
| bool s3d::ScreenCapture::HasNewFrame | ( | ) |
メモリ上に新しいスクリーンショットが保存されているかを返します。
ScreenCapture::Request() を呼んだ場合のみ true を返します。 | void s3d::ScreenCapture::RequestCurrentFrame | ( | ) |
現在のフレームのスクリーンショットを、次の System::Update() でメモリ上に保存します。
ScreenCapture::GetFrame() を通して取得できます。 | void s3d::ScreenCapture::SaveCurrentFrame | ( | FilePath && | path = (DateTime::Now().format(U"yyyyMMdd-HHmmss-SSS")+U".png") | ) |
現在のフレームを次の System::Update() でスクリーンショットとして保存します。
| path | 保存するスクリーンショットのファイル名 |
| void s3d::ScreenCapture::SetScreenshotDirectory | ( | FilePath && | path | ) |
スクリーンショットの保存先のディレクトリを変更します。
| path | 新しい保存先のディレクトリ |
| void s3d::ScreenCapture::SetShortcutKeys | ( | const Array< InputGroup > & | screenshotShortcutKeys | ) |
スクリーンショットのショートカットキーを設定します。
{ KeyPrintScreen, KeyF12 } です。 | screenshotShortcutKeys | スクリーンショットのショートカットキー |