案件托管
3 个节点
本页内容 3
截取案件画面
函数Draws one of the case's screens with no display, and gives back the picture.
签名
截取案件画面 -> Pixel Image
案件: CrimeProject
屏幕: Case Screen
宽度: 整数
高度: 整数PixelImage CaptureCase(
CrimeProject crimeCase,
CaseScreen screen = CaseScreen.Menu,
int width = 1280,
int height = 800)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 案件 | CrimeProject | — | A case, from CaseAuthoring.OpenCase. |
| 屏幕 | Case Screen | 菜单 | Which screen to draw. |
| 宽度 | 整数 | 1280 | Surface width in pixels. |
| 高度 | 整数 | 800 | Surface height in pixels. |
返回
| 结果 | Pixel Image |
备注
Settled before it is read: the host is pumped until nothing is animating, so the frame is the screen at rest rather than a frame caught part-way into a fade. The splash is the exception and is held mid-card on purpose, because a splash at rest is a splash that has already finished.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 案件托管
- 所属包
- 罪案引擎
截取案件画面到文件
函数Draws one of the case's screens and writes it to a file.
签名
截取案件画面到文件 -> 文本
案件: CrimeProject
图像路径: 文本
屏幕: Case Screen
宽度: 整数
高度: 整数string CaptureCaseToFile(
CrimeProject crimeCase,
string imagePath,
CaseScreen screen = CaseScreen.Menu,
int width = 1280,
int height = 800)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 案件 | CrimeProject | — | A case, from CaseAuthoring.OpenCase. |
| 图像路径 | 文本 | — | Where to write the PNG. |
| 屏幕 | Case Screen | 菜单 | Which screen to draw. |
| 宽度 | 整数 | 1280 | Surface width in pixels. |
| 高度 | 整数 | 800 | Surface height in pixels. |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 案件托管
- 所属包
- 罪案引擎
游玩案件
函数Opens a case in a window and plays it, returning when the window closes.
签名
游玩案件
案件: CrimeProject
打开位置: Case Screen
全屏: 真否
宽度: 整数
高度: 整数void PlayCase(
CrimeProject crimeCase,
CaseScreen openAt = CaseScreen.Menu,
bool fullScreen = false,
int width = 1280,
int height = 800)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 案件 | CrimeProject | — | A case, from CaseAuthoring.OpenCase. |
| 打开位置 | Case Screen | 菜单 | Which screen to open on. |
| 全屏 | 真否 | False | Whether to open full screen. |
| 宽度 | 整数 | 1280 | Window width, which a full-screen host replaces immediately. |
| 高度 | 整数 | 800 | Window height. |
备注
Blocks for as long as somebody is playing, which is what a window is. A graph that wants a picture rather than a session wants CaseHosting.CaptureCase.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 案件托管
- 所属包
- 罪案引擎