機能1
画像あるいは音声のアップロード
定義
bool ResourceCreate(
const string resource_name,
const string path
);
引数
In/Out | 型 | 内容 |
In | const string | リソース名 |
In | const string | ファイルへのパス(使用形式はbmpあるいはwavのみ) |
戻り値
型 | 内容 |
bool | 生成できたらtrue、エラーでfalse |
機能2
配列からデータを暗号化します
定義
bool ResourceCreate(
const string resource_name,
const uint& data[],
uint img_width,
uint img_height,
uint data_xoffset,
uint data_yoffset,
uint data_width,
ENUM_COLOR_FORMAT color_format
);
引数
In/Out | 型 | 内容 | ||||||
In | const string | リソース名 | ||||||
In | const uint& | 画像を作成するための 1 次元または 2 次元の配列データ | ||||||
In | uint | ピクセルの幅 | ||||||
In | uint | ピクセルの高さ | ||||||
In | uint | 右方向へのオフセット | ||||||
In | uint | 下方向へのオフセット | ||||||
In | uint | 画像の全幅(データが一次元配列の場合のみ)ゼロの場合img_widthと同等と解釈。 | ||||||
In | ENUM_COLOR_FORMAT |
|
戻り値
型 | 内容 |
bool | 生成できたらtrue、エラーでfalse |