メインコンテンツまでスキップ

Chroma C++ SDK

概要​

C++ ChromaSDK Game Sample は C++ のコンソールアプリで、Chroma Animation オーサリングツールで作成したアニメーションの再生を、すばやく追加するために使用できます。サンプルスクリプトは Sample.cpp にあります。リポジトリには、サポートされるエンコード種別ごとのブランチがあります。特殊文字を使用するパスやアニメーションファイルとの互換性を最大限にするには、Unicode を推奨します。

スクリーンショット:

コンソールアプリ

image-1

Chroma Emulator

image-3


セキュリティ​

第三者による悪意のあるコードの挿入を防ぐため、プラグインは Razer Chromatic Library の有効な署名を確認します。DLL の発行元が Razer USA Ltd. であることが検証されます。署名の確認に失敗すると、Init と InitSDK は RZRESULT_DLL_INVALID_SIGNATURE を返します。

全般​

  • Chroma SDK を使うと、アプリケーションやゲームは、Chroma App 内の Chroma Apps リストに詳細を設定できます。

このドキュメントでは、Chroma C++ SDK を使って Chroma RGB を統合する方法を説明します。Chroma は、既製の Chroma アニメーションまたは API で組み込めます。利用可能なメソッドは次のとおりです。

ダウンロード​

SDKs

  • CHROMA SDK
EngineGit RepoDownload LinkGit RepoDownload LinkGit RepoDownload Link
EncodingUNICODEASCIIMULTI-BYTE
CHROMA C++ SDKGitDownloadGitDownloadGitDownload
Chroma Unreal SDKGitDownload
Chroma Unity SDKGitDownload

名前空間​

API を使用するには、Chroma SDK の名前空間を追加します。

#include "Razer\ChromaAnimationAPI.h"

using namespace ChromaSDK;

SDK の初期化​

API を使用するには、Chroma SDK を初期化します。InitSDK メソッドは、Chroma App の Chroma Apps タブに表示される、アプリケーションやゲームの詳細を定義する AppInfo パラメーターを受け取ります。想定される戻り値は、API の使用準備が整ったことを示す RZRESULT_SUCCESS です。成功以外の結果が返された場合は、アプリケーションやゲームを次に起動するまで、Chroma の実装を無効にしてください。失敗の原因は、ユーザーに Synapse や Chroma App がインストールされていないことが考えられます。Chroma SDK の初期化に成功したら、約 100 ms 待ってから Chroma アニメーションを再生してください。

image-5

 APPINFOTYPE appInfo = {};

wcscpy_s(appInfo.Title, 256, L"Sample Game Title");
wcscpy_s(appInfo.Description, 1024, L"Sample Game Description");
wcscpy_s(appInfo.Author.Name, 256, L"Company Name");
wcscpy_s(appInfo.Author.Contact, 256, L"Company Website or Email");

//appInfo.SupportedDevice =
// 0x01 | // Keyboards
// 0x02 | // Mice
// 0x04 | // Headset
// 0x08 | // Mousepads
// 0x10 | // Keypads
// 0x20 // ChromaLink devices
appInfo.SupportedDevice = (0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20);
// 0x01 | // Utility. (To specify this is an utility application)
// 0x02 // Game. (To specify this is a game);
appInfo.Category = 0x02;

RZRESULT result = ChromaAnimationAPI::InitSDK(&appInfo);
if (result == RZRESULT_SUCCESS)
{
// Init Success! Ready to use the Chroma SDK!
}
else
{
// Init Failed! Stop using the Chroma SDK until the next game launch!";
}

アプリケーションは、正常に終了するために Uninit() で Chroma SDK を初期化解除する必要があります。初期化解除が必要なのは、Chroma SDK の初期化に成功した場合のみです。

int result = ChromaAnimationAPI::Uninit();
if (result == RZRESULT_SUCCESS)
{
// Chroma has been uninitialized!
}
else
{
// Uninitialization was unsuccessful!
}

アクティブかどうかの確認​

IsActive() は、SDK の初期化状態を返します。結果が 0 の場合、SDK は初期化されています。結果が 0 以外の場合は、不要なオーバーヘッドを減らすため、API の呼び出しを避けてください。

bool isActive;
int result = ChromaAnimationAPI::IsActive(isActive);
if (result == RZRESULT_SUCCESS)
{
// The SDK is initialized
}
else
{
// Avoid calling the API
}

接続の確認​

IsConnected() は、SDK の初期化状態を返します。結果が 0 の場合、SDK は初期化されています。結果が 0 以外の場合は、不要なオーバーヘッドを減らすため、API の呼び出しを避けてください。

DEVICE_INFO_TYPE deviceInfo = { DEVICE_INFO_TYPE::DEVICE_ALL };
int result = ChromaAnimationAPI::CoreIsConnected(deviceInfo);
if (result == RZRESULT_SUCCESS)
{
// The SDK is initialized
}
else
{
// Avoid calling the API
}

Chroma アニメーションの再生​

Chroma SDK は、StreamingAssets フォルダーまたはその中のサブフォルダーに置かれた、既製の Chroma アニメーションの再生をサポートします。Chroma アニメーションは、Web オーサリングツールで作成することも、API を使って動的に作成、変更することもできます。ループあり、またはなしで Chroma アニメーションを再生するには、PlayAnimation() を呼び出します。アニメーションにはデバイスカテゴリがあり、アニメーションを再生すると、指定したデバイスカテゴリで再生中の既存のアニメーションが停止してから、新しいアニメーションが再生されます。アニメーション名は、StreamingAssets フォルダーを基準とした Chroma アニメーションのファイルパスです。

bool loop = false;
vector<wstring> devices =
{
L"ChromaLink",
L"Headset",
L"Keyboard",
L"Keypad",
L"Mouse",
L"Mousepad"
};
for (int i = 0; i < devices.size(); ++i)
{
wstring animationName = L"Animations/Spiral_" + devices[i] + L".chroma";
ChromaAnimationAPI::PlayAnimationName(animationName.c_str(), loop);
}

API クラス​

ChromaAnimationAPI クラスは、RzChromatic ライブラリのラッパーを提供します。API のラッパーは、ChromaAnimationAPI.h と ChromaAnimationAPI.cpp にあります。

完全な API​

メソッド:


PluginAddColor

色の合計を返します

// DLL Interface
EXPORT_API int PluginAddColor(
const int color1, const int color2);

// Class Plugin
int result = ChromaAnimationAPI::AddColor(
const int color1, const int color2);

PluginAddFrame

Chroma アニメーションにフレームを追加し、duration(秒)を設定します。color は、deviceType/device のサイズに合った配列である必要があります。length パラメーターは、color 配列のサイズです。EChromaSDKDevice1DEnum の場合、配列のサイズは MAX LEDS にします。EChromaSDKDevice2DEnum の場合、配列のサイズは MAX ROW × MAX COLUMN にします。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginAddFrame(
int animationId, float duration, int* colors, int length);

// Class Plugin
int result = ChromaAnimationAPI::AddFrame(
int animationId, float duration, int* colors, int length);

PluginAddNonZeroAllKeys

フレーム ID について、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

PluginAddNonZeroAllKeysAllFrames

すべてのフレームについて、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginAddNonZeroAllKeysAllFramesName

すべてのフレームについて、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginAddNonZeroAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginAddNonZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::AddNonZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginAddNonZeroAllKeysAllFramesOffset

ソースの長さ分、オフセットから始まるすべてのフレームについて、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

PluginAddNonZeroAllKeysAllFramesOffsetName

ソースの長さ分、オフセットから始まるすべてのフレームについて、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

PluginAddNonZeroAllKeysAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginAddNonZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

// Class Plugin
double result = ChromaAnimationAPI::AddNonZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

PluginAddNonZeroAllKeysName

フレーム ID について、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

PluginAddNonZeroAllKeysOffset

ソースフレームとターゲットオフセットフレームについて、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

PluginAddNonZeroAllKeysOffsetName

ソースフレームとターゲットオフセットフレームについて、色が黒でない箇所のソースの色をターゲットに加算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

PluginAddNonZeroAllKeysOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginAddNonZeroAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

// Class Plugin
double result = ChromaAnimationAPI::AddNonZeroAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

PluginAddNonZeroTargetAllKeysAllFrames

すべてのフレームについて、ターゲットの色が黒でない箇所に、ソースの色をターゲットに加算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::AddNonZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginAddNonZeroTargetAllKeysAllFramesName

すべてのフレームについて、ターゲットの色が黒でない箇所に、ソースの色をターゲットに加算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::AddNonZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginAddNonZeroTargetAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginAddNonZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::AddNonZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginAddNonZeroTargetAllKeysAllFramesOffset

ソースの長さ分、オフセットから始まるすべてのフレームについて、ターゲットの色が黒でない箇所に、ソースの色をターゲットに加算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroTargetAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroTargetAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

PluginAddNonZeroTargetAllKeysAllFramesOffsetName

ソースの長さ分、オフセットから始まるすべてのフレームについて、ターゲットの色が黒でない箇所に、ソースの色をターゲットに加算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroTargetAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroTargetAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

PluginAddNonZeroTargetAllKeysAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginAddNonZeroTargetAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

// Class Plugin
double result = ChromaAnimationAPI::AddNonZeroTargetAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

PluginAddNonZeroTargetAllKeysOffset

ソースフレームからターゲットオフセットフレームまでについて、ターゲットの色が空白でない箇所に、ソースの色をターゲットに加算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroTargetAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroTargetAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

PluginAddNonZeroTargetAllKeysOffsetName

ソースフレームからターゲットオフセットフレームまでについて、ターゲットの色が空白でない箇所に、ソースの色をターゲットに加算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAddNonZeroTargetAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

// Class Plugin
ChromaAnimationAPI::AddNonZeroTargetAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

PluginAddNonZeroTargetAllKeysOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginAddNonZeroTargetAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

// Class Plugin
double result = ChromaAnimationAPI::AddNonZeroTargetAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

PluginAppendAllFrames

ソースのすべてのフレームをターゲットアニメーションに追加します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginAppendAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::AppendAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginAppendAllFramesName

ソースのすべてのフレームをターゲットアニメーションに追加します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginAppendAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::AppendAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginAppendAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginAppendAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::AppendAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginClearAll

PluginClearAll は、すべてのデバイスに CLEAR エフェクトを発行します。

// DLL Interface
EXPORT_API void PluginClearAll();

// Class Plugin
ChromaAnimationAPI::ClearAll();

PluginClearAnimationType

PluginClearAnimationType は、指定したデバイスに CLEAR エフェクトを発行します。

// DLL Interface
EXPORT_API void PluginClearAnimationType(
int deviceType, int device);

// Class Plugin
ChromaAnimationAPI::ClearAnimationType(
int deviceType, int device);

PluginCloseAll

PluginCloseAll は、開いているすべてのアニメーションを閉じ、ディスクから再読み込みできるようにします。アニメーションのセットは、再生中であれば停止されます。

// DLL Interface
EXPORT_API void PluginCloseAll();

// Class Plugin
ChromaAnimationAPI::CloseAll();

PluginCloseAnimation

ID で参照した Chroma アニメーションを閉じ、リソースを解放します。成功するとアニメーション ID を返します。失敗すると -1 を返します。エフェクトのオーサリング中に、アニメーションを再度開く必要がある変更があった場合などに使用できます。閉じたアニメーション ID は、使用できなくなります。

// DLL Interface
EXPORT_API int PluginCloseAnimation(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::CloseAnimation(int animationId);

PluginCloseAnimationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCloseAnimationD(double animationId);

// Class Plugin
double result = ChromaAnimationAPI::CloseAnimationD(double animationId);

PluginCloseAnimationName

名前で参照した Chroma アニメーションを閉じ、ディスクから再読み込みできるようにします。

// DLL Interface
EXPORT_API void PluginCloseAnimationName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::CloseAnimationName(const wchar_t* path);

PluginCloseAnimationNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCloseAnimationNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::CloseAnimationNameD(const wchar_t* path);

PluginCloseComposite

PluginCloseComposite は、アニメーションのセットを閉じ、ディスクから再読み込みできるようにします。アニメーションのセットは、再生中であれば停止されます。

// DLL Interface
EXPORT_API void PluginCloseComposite(const wchar_t* name);

// Class Plugin
ChromaAnimationAPI::CloseComposite(const wchar_t* name);

PluginCloseCompositeD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCloseCompositeD(const wchar_t* name);

// Class Plugin
double result = ChromaAnimationAPI::CloseCompositeD(const wchar_t* name);

PluginCopyAllKeys

指定したフレームについて、ソースアニメーションをターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

PluginCopyAllKeysName

指定したフレームについて、ソースアニメーションをターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

PluginCopyAnimation

アニメーションを、メモリ内の名前付きターゲットアニメーションにコピーします。ターゲットアニメーションが存在する場合は、先に閉じます。ソースは ID で参照します。

// DLL Interface
EXPORT_API int PluginCopyAnimation(
int sourceAnimationId, const wchar_t* targetAnimation);

// Class Plugin
int result = ChromaAnimationAPI::CopyAnimation(
int sourceAnimationId, const wchar_t* targetAnimation);

PluginCopyAnimationName

アニメーションを、メモリ内の名前付きターゲットアニメーションにコピーします。ターゲットアニメーションが存在する場合は、先に閉じます。ソースは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyAnimationName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::CopyAnimationName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyAnimationNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyAnimationNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::CopyAnimationNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyBlueChannelAllFrames

すべてのフレームについて、青チャンネルを他のチャンネルにコピーします。強度の範囲は 0.0 から 1.0 です。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyBlueChannelAllFrames(
int animationId, float redIntensity, float greenIntensity);

// Class Plugin
ChromaAnimationAPI::CopyBlueChannelAllFrames(
int animationId, float redIntensity, float greenIntensity);

PluginCopyBlueChannelAllFramesName

すべてのフレームについて、青チャンネルを他のチャンネルにコピーします。強度の範囲は 0.0 から 1.0 です。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyBlueChannelAllFramesName(
const wchar_t* path, float redIntensity, float greenIntensity);

// Class Plugin
ChromaAnimationAPI::CopyBlueChannelAllFramesName(
const wchar_t* path, float redIntensity, float greenIntensity);

PluginCopyBlueChannelAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyBlueChannelAllFramesNameD(
const wchar_t* path, double redIntensity, double greenIntensity);

// Class Plugin
double result = ChromaAnimationAPI::CopyBlueChannelAllFramesNameD(
const wchar_t* path, double redIntensity, double greenIntensity);

PluginCopyGreenChannelAllFrames

すべてのフレームについて、緑チャンネルを他のチャンネルにコピーします。強度の範囲は 0.0 から 1.0 です。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyGreenChannelAllFrames(
int animationId, float redIntensity, float blueIntensity);

// Class Plugin
ChromaAnimationAPI::CopyGreenChannelAllFrames(
int animationId, float redIntensity, float blueIntensity);

PluginCopyGreenChannelAllFramesName

すべてのフレームについて、緑チャンネルを他のチャンネルにコピーします。強度の範囲は 0.0 から 1.0 です。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyGreenChannelAllFramesName(
const wchar_t* path, float redIntensity, float blueIntensity);

// Class Plugin
ChromaAnimationAPI::CopyGreenChannelAllFramesName(
const wchar_t* path, float redIntensity, float blueIntensity);

PluginCopyGreenChannelAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyGreenChannelAllFramesNameD(
const wchar_t* path, double redIntensity, double blueIntensity);

// Class Plugin
double result = ChromaAnimationAPI::CopyGreenChannelAllFramesNameD(
const wchar_t* path, double redIntensity, double blueIntensity);

PluginCopyKeyColor

指定したフレームについて、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeyColor(
int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyKeyColor(
int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);

PluginCopyKeyColorAllFrames

すべてのフレームについて、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeyColorAllFrames(
int sourceAnimationId, int targetAnimationId, int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyKeyColorAllFrames(
int sourceAnimationId, int targetAnimationId, int rzkey);

PluginCopyKeyColorAllFramesName

すべてのフレームについて、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeyColorAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyKeyColorAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int rzkey);

PluginCopyKeyColorAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyKeyColorAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double rzkey);

// Class Plugin
double result = ChromaAnimationAPI::CopyKeyColorAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double rzkey);

PluginCopyKeyColorAllFramesOffset

ソースアニメーションの長さ分、オフセットから始まるすべてのフレームについて、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeyColorAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int rzkey, int offset);

// Class Plugin
ChromaAnimationAPI::CopyKeyColorAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int rzkey, int offset);

PluginCopyKeyColorAllFramesOffsetName

ソースアニメーションの長さ分、オフセットから始まるすべてのフレームについて、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeyColorAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int rzkey,
int offset);

// Class Plugin
ChromaAnimationAPI::CopyKeyColorAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int rzkey,
int offset);

PluginCopyKeyColorAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyKeyColorAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double rzkey,
double offset);

// Class Plugin
double result = ChromaAnimationAPI::CopyKeyColorAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double rzkey,
double offset);

PluginCopyKeyColorName

指定したフレームについて、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。

// DLL Interface
EXPORT_API void PluginCopyKeyColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyKeyColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int rzkey);

PluginCopyKeyColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyKeyColorNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double rzkey);

// Class Plugin
double result = ChromaAnimationAPI::CopyKeyColorNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double rzkey);

PluginCopyKeysColor

指定したフレームについて、ソースアニメーションの一連のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeysColor(
int sourceAnimationId, int targetAnimationId, int frameId, const int* keys,
int size);

// Class Plugin
ChromaAnimationAPI::CopyKeysColor(
int sourceAnimationId, int targetAnimationId, int frameId, const int* keys,
int size);

PluginCopyKeysColorAllFrames

すべてのフレームについて、ソースアニメーションの一連のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeysColorAllFrames(
int sourceAnimationId, int targetAnimationId, const int* keys, int size);

// Class Plugin
ChromaAnimationAPI::CopyKeysColorAllFrames(
int sourceAnimationId, int targetAnimationId, const int* keys, int size);

PluginCopyKeysColorAllFramesName

すべてのフレームについて、ソースアニメーションの一連のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeysColorAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, const int* keys,
int size);

// Class Plugin
ChromaAnimationAPI::CopyKeysColorAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, const int* keys,
int size);

PluginCopyKeysColorName

指定したフレームについて、ソースアニメーションの一連のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeysColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
const int* keys, int size);

// Class Plugin
ChromaAnimationAPI::CopyKeysColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
const int* keys, int size);

PluginCopyKeysColorOffset

ソースフレームからターゲットフレームまでについて、ソースアニメーションの一連のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeysColorOffset(
int sourceAnimationId, int targetAnimationId, int sourceFrameId, int targetFrameId,
const int* keys, int size);

// Class Plugin
ChromaAnimationAPI::CopyKeysColorOffset(
int sourceAnimationId, int targetAnimationId, int sourceFrameId, int targetFrameId,
const int* keys, int size);

PluginCopyKeysColorOffsetName

ソースフレームからターゲットフレームまでについて、ソースアニメーションの一連のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyKeysColorOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int sourceFrameId,
int targetFrameId, const int* keys, int size);

// Class Plugin
ChromaAnimationAPI::CopyKeysColorOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int sourceFrameId,
int targetFrameId, const int* keys, int size);

PluginCopyNonZeroAllKeys

指定したフレームについて、ソースアニメーションをターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

PluginCopyNonZeroAllKeysAllFrames

すべてのフレームについて、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginCopyNonZeroAllKeysAllFramesName

すべてのフレームについて、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyNonZeroAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyNonZeroAllKeysAllFramesOffset

ソースアニメーションの長さ分、オフセットから始まるすべてのフレームについて、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

PluginCopyNonZeroAllKeysAllFramesOffsetName

ソースアニメーションの長さ分、オフセットから始まるすべてのフレームについて、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

PluginCopyNonZeroAllKeysAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

PluginCopyNonZeroAllKeysName

指定したフレームについて、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

PluginCopyNonZeroAllKeysNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroAllKeysNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroAllKeysNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId);

PluginCopyNonZeroAllKeysOffset

ソースフレームからターゲットオフセットフレームまでについて、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

PluginCopyNonZeroAllKeysOffsetName

ソースフレームからターゲットオフセットフレームまでについて、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

PluginCopyNonZeroAllKeysOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

PluginCopyNonZeroKeyColor

指定したフレームについて、色が 0 でない箇所の、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。

// DLL Interface
EXPORT_API void PluginCopyNonZeroKeyColor(
int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroKeyColor(
int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);

PluginCopyNonZeroKeyColorName

指定したフレームについて、色が 0 でない箇所の、ソースアニメーションのキーの色をターゲットアニメーションにコピーします。

// DLL Interface
EXPORT_API void PluginCopyNonZeroKeyColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroKeyColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int rzkey);

PluginCopyNonZeroKeyColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroKeyColorNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double rzkey);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroKeyColorNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double rzkey);

PluginCopyNonZeroTargetAllKeys

指定したフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

PluginCopyNonZeroTargetAllKeysAllFrames

すべてのフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginCopyNonZeroTargetAllKeysAllFramesName

すべてのフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyNonZeroTargetAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyNonZeroTargetAllKeysAllFramesOffset

すべてのフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

PluginCopyNonZeroTargetAllKeysAllFramesOffsetName

ソースアニメーションの長さ分、ターゲットオフセットから始まるすべてのフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットのアニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

PluginCopyNonZeroTargetAllKeysAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroTargetAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroTargetAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

PluginCopyNonZeroTargetAllKeysName

指定したフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

PluginCopyNonZeroTargetAllKeysNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroTargetAllKeysNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroTargetAllKeysNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId);

PluginCopyNonZeroTargetAllKeysOffset

指定したソースフレームとターゲットオフセットフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

PluginCopyNonZeroTargetAllKeysOffsetName

指定したソースフレームとターゲットオフセットフレームについて、ターゲットの色が 0 以外の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

PluginCopyNonZeroTargetAllKeysOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroTargetAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroTargetAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

PluginCopyNonZeroTargetZeroAllKeysAllFrames

すべてのフレームについて、ターゲットの色が 0 の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginCopyNonZeroTargetZeroAllKeysAllFramesName

すべてのフレームについて、ターゲットの色が 0 の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyNonZeroTargetZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::CopyNonZeroTargetZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyNonZeroTargetZeroAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyNonZeroTargetZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::CopyNonZeroTargetZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyRedChannelAllFrames

すべてのフレームについて、赤チャンネルを他のチャンネルにコピーします。強度の範囲は 0.0 から 1.0 です。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyRedChannelAllFrames(
int animationId, float greenIntensity, float blueIntensity);

// Class Plugin
ChromaAnimationAPI::CopyRedChannelAllFrames(
int animationId, float greenIntensity, float blueIntensity);

PluginCopyRedChannelAllFramesName

すべてのフレームについて、緑チャンネルを他のチャンネルにコピーします。強度の範囲は 0.0 から 1.0 です。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyRedChannelAllFramesName(
const wchar_t* path, float greenIntensity, float blueIntensity);

// Class Plugin
ChromaAnimationAPI::CopyRedChannelAllFramesName(
const wchar_t* path, float greenIntensity, float blueIntensity);

PluginCopyRedChannelAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyRedChannelAllFramesNameD(
const wchar_t* path, double greenIntensity, double blueIntensity);

// Class Plugin
double result = ChromaAnimationAPI::CopyRedChannelAllFramesNameD(
const wchar_t* path, double greenIntensity, double blueIntensity);

PluginCopyZeroAllKeys

指定したフレームについて、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

PluginCopyZeroAllKeysAllFrames

すべてのフレームについて、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginCopyZeroAllKeysAllFramesName

すべてのフレームについて、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyZeroAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::CopyZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyZeroAllKeysAllFramesOffset

ソースアニメーションの長さ分、ターゲットオフセットから始まるすべてのフレームについて、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

PluginCopyZeroAllKeysAllFramesOffsetName

ソースアニメーションの長さ分、ターゲットオフセットから始まるすべてのフレームについて、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

PluginCopyZeroAllKeysAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

// Class Plugin
double result = ChromaAnimationAPI::CopyZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

PluginCopyZeroAllKeysName

指定したフレームについて、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

PluginCopyZeroAllKeysOffset

ソースアニメーションの長さ分、ターゲットオフセットから始まるフレーム ID について、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

PluginCopyZeroAllKeysOffsetName

ソースアニメーションの長さ分、ターゲットオフセットから始まるフレーム ID について、ソースアニメーションの 0 の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

// Class Plugin
ChromaAnimationAPI::CopyZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

PluginCopyZeroKeyColor

指定したフレームについて、ソースアニメーションの 0 のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroKeyColor(
int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyZeroKeyColor(
int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);

PluginCopyZeroKeyColorName

指定したフレームについて、ソースアニメーションの 0 のキーの色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroKeyColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int rzkey);

// Class Plugin
ChromaAnimationAPI::CopyZeroKeyColorName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int rzkey);

PluginCopyZeroKeyColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyZeroKeyColorNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double rzkey);

// Class Plugin
double result = ChromaAnimationAPI::CopyZeroKeyColorNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double rzkey);

PluginCopyZeroTargetAllKeys

指定したフレームについて、ターゲットが 0 の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroTargetAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyZeroTargetAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

PluginCopyZeroTargetAllKeysAllFrames

すべてのフレームについて、ターゲットが 0 の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::CopyZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginCopyZeroTargetAllKeysAllFramesName

すべてのフレームについて、ターゲットが 0 の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::CopyZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyZeroTargetAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginCopyZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::CopyZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginCopyZeroTargetAllKeysName

指定したフレームについて、ターゲットが 0 の箇所に、ソースアニメーションの 0 以外の色をターゲットアニメーションにコピーします。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginCopyZeroTargetAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

// Class Plugin
ChromaAnimationAPI::CopyZeroTargetAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

PluginCoreCreateChromaLinkEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreCreateChromaLinkEffect(
ChromaSDK::ChromaLink::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreCreateChromaLinkEffect(
ChromaSDK::ChromaLink::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

PluginCoreCreateEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreCreateEffect(
RZDEVICEID DeviceId, ChromaSDK::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreCreateEffect(
RZDEVICEID DeviceId, ChromaSDK::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

PluginCoreCreateHeadsetEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreCreateHeadsetEffect(
ChromaSDK::Headset::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreCreateHeadsetEffect(
ChromaSDK::Headset::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

PluginCoreCreateKeyboardEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreCreateKeyboardEffect(
ChromaSDK::Keyboard::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreCreateKeyboardEffect(
ChromaSDK::Keyboard::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

PluginCoreCreateKeypadEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreCreateKeypadEffect(
ChromaSDK::Keypad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreCreateKeypadEffect(
ChromaSDK::Keypad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

PluginCoreCreateMouseEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreCreateMouseEffect(
ChromaSDK::Mouse::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreCreateMouseEffect(
ChromaSDK::Mouse::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

PluginCoreCreateMousepadEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreCreateMousepadEffect(
ChromaSDK::Mousepad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreCreateMousepadEffect(
ChromaSDK::Mousepad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);

PluginCoreDeleteEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreDeleteEffect(RZEFFECTID EffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreDeleteEffect(RZEFFECTID EffectId);

PluginCoreInit

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreInit();

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreInit();

PluginCoreInitSDK

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreInitSDK(
ChromaSDK::APPINFOTYPE* AppInfo);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreInitSDK(
ChromaSDK::APPINFOTYPE* AppInfo);

PluginCoreIsActive

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreIsActive(BOOL& Active);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreIsActive(BOOL& Active);

PluginCoreIsConnected

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreIsConnected(
ChromaSDK::DEVICE_INFO_TYPE& DeviceInfo);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreIsConnected(
ChromaSDK::DEVICE_INFO_TYPE& DeviceInfo);

PluginCoreQueryDevice

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreQueryDevice(
RZDEVICEID DeviceId, ChromaSDK::DEVICE_INFO_TYPE& DeviceInfo);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreQueryDevice(
RZDEVICEID DeviceId, ChromaSDK::DEVICE_INFO_TYPE& DeviceInfo);

PluginCoreSetEffect

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreSetEffect(RZEFFECTID EffectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreSetEffect(RZEFFECTID EffectId);

PluginCoreSetEventName

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreSetEventName(LPCTSTR Name);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreSetEventName(LPCTSTR Name);

PluginCoreStreamBroadcast

Chroma RGB データのブロードキャストを、保存済みのストリームキーをエンドポイントとして開始します。クラウドゲーミングプラットフォーム向けで、ゲームインスタンスの起動時にストリーミングキーを復元して、ストリーミングを継続します。streamId は null 終端文字列、streamKey は null 終端文字列です。このメソッドを使用するには、StreamGetStatus() が READY ステータスを返す必要があります。

// DLL Interface
EXPORT_API bool PluginCoreStreamBroadcast(
const char* streamId, const char* streamKey);

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamBroadcast(
const char* streamId, const char* streamKey);

PluginCoreStreamBroadcastEnd

Chroma RGB データのブロードキャストを終了します。このメソッドを使用するには、StreamGetStatus() が BROADCASTING ステータスを返す必要があります。

// DLL Interface
EXPORT_API bool PluginCoreStreamBroadcastEnd();

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamBroadcastEnd();

PluginCoreStreamGetAuthShortcode

shortcode: ストリーミング認証コードを取得するために、事前に割り当てた文字バッファーのアドレスを渡します。バッファーの長さは 6 以上にする必要があります。length: ストリーミング認証コードを取得できなかった場合、length は 0 を返します。length が 0 より大きい場合は、返されたストリーミング認証コードの長さです。shortcode を取得したら、ユーザーが Razer ID にストリームを関連付けられるよう、ユーザーに表示する必要があります。このメソッドを呼び出す前に、StreamGetStatus() が READY ステータスを返す必要があります。platform: ストリームのソースを識別する null 終端文字列です(GEFORCE_NOW、LUNA、STADIA、GAME_PASS)。title: アプリケーションまたはゲームを識別する null 終端文字列です。

// DLL Interface
EXPORT_API void PluginCoreStreamGetAuthShortcode(
char* shortcode, unsigned char* length, const wchar_t* platform, const wchar_t* title);

// Class Plugin
ChromaAnimationAPI::CoreStreamGetAuthShortcode(
char* shortcode, unsigned char* length, const wchar_t* platform, const wchar_t* title);

PluginCoreStreamGetFocus

focus: ストリームのフォーカスを取得するために、事前に割り当てた文字バッファーのアドレスを渡します。バッファーの長さは 48 にする必要があります。length: ストリームのフォーカスを取得できなかった場合、length は 0 を返します。length が 0 より大きい場合は、返されたストリームフォーカスの長さです。

// DLL Interface
EXPORT_API bool PluginCoreStreamGetFocus(
char* focus, unsigned char* length);

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamGetFocus(
char* focus, unsigned char* length);

PluginCoreStreamGetId

クラウドゲーミングプラットフォーム向けで、ゲームが中断または終了してもストリーミングを継続できるよう、ストリーム ID をユーザー設定に保存して保持します。shortcode: shortcode は null 終端文字列です。ストリームを承認した shortcode を使って、ストリーム ID を取得します。streamId は、ストリームキーを取得するために事前に割り当てたバッファーにする必要があります。バッファーの長さは 48 にする必要があります。length: キーを取得できなかった場合、length は 0 を返します。length が 0 より大きい場合は、返されたストリーミング ID の長さです。shortcode を承認した後に、ストリーム ID を取得します。承認の有効期間は 5 分です。有効期間が切れる前に、ストリームキーを必ず保存してください。このメソッドを使用するには、StreamGetStatus() が READY ステータスを返す必要があります。

// DLL Interface
EXPORT_API void PluginCoreStreamGetId(
const char* shortcode, char* streamId, unsigned char* length);

// Class Plugin
ChromaAnimationAPI::CoreStreamGetId(
const char* shortcode, char* streamId, unsigned char* length);

PluginCoreStreamGetKey

クラウドゲーミングプラットフォーム向けで、ゲームが中断または終了してもストリーミングを継続できるよう、ストリーミングキーをユーザー設定に保存して保持します。shortcode: shortcode は null 終端文字列です。ストリームを承認した shortcode を使って、ストリームキーを取得します。ステータスが BROADCASTING または WATCHING の状態で NULL の shortcode を渡すと、アクティブな streamId を返します。streamKey は、ストリームキーを取得するために事前に割り当てたバッファーにする必要があります。バッファーの長さは 48 にする必要があります。length: キーを取得できなかった場合、length は 0 を返します。length が 0 より大きい場合は、返されたストリーミングキーの長さです。shortcode を承認した後に、ストリームキーを取得します。承認の有効期間は 5 分です。有効期間が切れる前に、ストリームキーを必ず保存してください。このメソッドを使用するには、StreamGetStatus() が READY ステータスを返す必要があります。

// DLL Interface
EXPORT_API void PluginCoreStreamGetKey(
const char* shortcode, char* streamKey, unsigned char* length);

// Class Plugin
ChromaAnimationAPI::CoreStreamGetKey(
const char* shortcode, char* streamKey, unsigned char* length);

PluginCoreStreamGetStatus

サービスの現在のステータスである StreamStatus を返します

// DLL Interface
EXPORT_API ChromaSDK::Stream::StreamStatusType PluginCoreStreamGetStatus();

// Class Plugin
ChromaSDK::Stream::StreamStatusType result = ChromaAnimationAPI::CoreStreamGetStatus();

PluginCoreStreamGetStatusString

StreamStatusType を、表示可能な文字列に変換します

// DLL Interface
EXPORT_API const char* PluginCoreStreamGetStatusString(
ChromaSDK::Stream::StreamStatusType status);

// Class Plugin
const char* result = ChromaAnimationAPI::CoreStreamGetStatusString(
ChromaSDK::Stream::StreamStatusType status);

PluginCoreStreamReleaseShortcode

shortcode を通じてストリーム ID とストリームキーが取得されるのを防ぎます。これにより、認証ウィンドウが閉じます。shortcode は null 終端文字列です。このメソッドを使用するには、StreamGetStatus() が READY ステータスを返す必要があります。shortcode が解放されると、成功を返します

// DLL Interface
EXPORT_API bool PluginCoreStreamReleaseShortcode(
const char* shortcode);

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamReleaseShortcode(
const char* shortcode);

PluginCoreStreamSetFocus

フォーカスは null 終端文字列です。ストリーミング状態を自動的に変更するよう指定されたアプリケーションのフォーカス識別子を設定します。成功すると true を返します。

// DLL Interface
EXPORT_API bool PluginCoreStreamSetFocus(const char* focus);

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamSetFocus(const char* focus);

PluginCoreStreamSupportsStreaming

Chroma ストリーミングがサポートされている場合は true を返します。false が返された場合は、ストリームメソッドの呼び出しを避けてください。

// DLL Interface
EXPORT_API bool PluginCoreStreamSupportsStreaming();

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamSupportsStreaming();

PluginCoreStreamWatch

streamID パラメーターを使って、Chroma RGB データの視聴を開始します。streamId は null 終端文字列です。このメソッドを使用するには、StreamGetStatus() が READY ステータスを返す必要があります。

// DLL Interface
EXPORT_API bool PluginCoreStreamWatch(
const char* streamId, unsigned long long timestamp);

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamWatch(
const char* streamId, unsigned long long timestamp);

PluginCoreStreamWatchEnd

Chroma RGB データストリームの視聴を終了します。このメソッドを使用するには、StreamGetStatus() が WATCHING ステータスを返す必要があります。

// DLL Interface
EXPORT_API bool PluginCoreStreamWatchEnd();

// Class Plugin
bool result = ChromaAnimationAPI::CoreStreamWatchEnd();

PluginCoreUnInit

低レベル API への直接アクセス。

// DLL Interface
EXPORT_API RZRESULT PluginCoreUnInit();

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CoreUnInit();

PluginCreateAnimation

指定したパスに Chroma アニメーションを作成します。deviceType パラメーターには、整数として EChromaSDKDeviceTypeEnum を使用します。device パラメーターには、deviceType に応じて、整数として EChromaSDKDevice1DEnum または EChromaSDKDevice2DEnum を使用します。成功するとアニメーション ID を返します。失敗すると -1 を返します。指定したパスに、拡張子 .chroma の Chroma アニメーションファイルを保存します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginCreateAnimation(
const wchar_t* path, int deviceType, int device);

// Class Plugin
int result = ChromaAnimationAPI::CreateAnimation(
const wchar_t* path, int deviceType, int device);

PluginCreateAnimationInMemory

ファイルを作成せずに、メモリ内に Chroma アニメーションを作成します。deviceType パラメーターには、整数として EChromaSDKDeviceTypeEnum を使用します。device パラメーターには、deviceType に応じて、整数として EChromaSDKDevice1DEnum または EChromaSDKDevice2DEnum を使用します。成功するとアニメーション ID を返します。失敗すると -1 を返します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginCreateAnimationInMemory(
int deviceType, int device);

// Class Plugin
int result = ChromaAnimationAPI::CreateAnimationInMemory(
int deviceType, int device);

PluginCreateEffect

デバイス固有のエフェクトを作成します。

// DLL Interface
EXPORT_API RZRESULT PluginCreateEffect(
RZDEVICEID deviceId, ChromaSDK::EFFECT_TYPE effect, int* colors, int size,
ChromaSDK::FChromaSDKGuid* effectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::CreateEffect(
RZDEVICEID deviceId, ChromaSDK::EFFECT_TYPE effect, int* colors, int size,
ChromaSDK::FChromaSDKGuid* effectId);

PluginDeleteEffect

エフェクト ID を指定して、エフェクトを削除します。

// DLL Interface
EXPORT_API RZRESULT PluginDeleteEffect(
const ChromaSDK::FChromaSDKGuid& effectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::DeleteEffect(
const ChromaSDK::FChromaSDKGuid& effectId);

PluginDuplicateFirstFrame

アニメーションの長さがフレーム数と一致するよう、最初のアニメーションフレームを複製します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginDuplicateFirstFrame(
int animationId, int frameCount);

// Class Plugin
ChromaAnimationAPI::DuplicateFirstFrame(
int animationId, int frameCount);

PluginDuplicateFirstFrameName

アニメーションの長さがフレーム数と一致するよう、最初のアニメーションフレームを複製します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginDuplicateFirstFrameName(
const wchar_t* path, int frameCount);

// Class Plugin
ChromaAnimationAPI::DuplicateFirstFrameName(
const wchar_t* path, int frameCount);

PluginDuplicateFirstFrameNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginDuplicateFirstFrameNameD(
const wchar_t* path, double frameCount);

// Class Plugin
double result = ChromaAnimationAPI::DuplicateFirstFrameNameD(
const wchar_t* path, double frameCount);

PluginDuplicateFrames

アニメーションのすべてのフレームを複製して、アニメーションの長さを 2 倍にします。フレーム 1 はフレーム 1 と 2 になり、フレーム 2 はフレーム 3 と 4 になります。以降も同様です。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginDuplicateFrames(int animationId);

// Class Plugin
ChromaAnimationAPI::DuplicateFrames(int animationId);

PluginDuplicateFramesName

アニメーションのすべてのフレームを複製して、アニメーションの長さを 2 倍にします。フレーム 1 はフレーム 1 と 2 になり、フレーム 2 はフレーム 3 と 4 になります。以降も同様です。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginDuplicateFramesName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::DuplicateFramesName(const wchar_t* path);

PluginDuplicateFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginDuplicateFramesNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::DuplicateFramesNameD(const wchar_t* path);

PluginDuplicateMirrorFrames

すべてのアニメーションフレームを逆順に複製して、アニメーションが順方向と逆方向に再生されるようにします。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginDuplicateMirrorFrames(int animationId);

// Class Plugin
ChromaAnimationAPI::DuplicateMirrorFrames(int animationId);

PluginDuplicateMirrorFramesName

すべてのアニメーションフレームを逆順に複製して、アニメーションが順方向と逆方向に再生されるようにします。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginDuplicateMirrorFramesName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::DuplicateMirrorFramesName(const wchar_t* path);

PluginDuplicateMirrorFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginDuplicateMirrorFramesNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::DuplicateMirrorFramesNameD(const wchar_t* path);

PluginFadeEndFrames

フェードフレームインデックスからアニメーションの最後まで、アニメーションを黒にフェードさせます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFadeEndFrames(
int animationId, int fade);

// Class Plugin
ChromaAnimationAPI::FadeEndFrames(
int animationId, int fade);

PluginFadeEndFramesName

フェードフレームインデックスからアニメーションの最後まで、アニメーションを黒にフェードさせます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFadeEndFramesName(
const wchar_t* path, int fade);

// Class Plugin
ChromaAnimationAPI::FadeEndFramesName(
const wchar_t* path, int fade);

PluginFadeEndFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFadeEndFramesNameD(
const wchar_t* path, double fade);

// Class Plugin
double result = ChromaAnimationAPI::FadeEndFramesNameD(
const wchar_t* path, double fade);

PluginFadeStartFrames

0 からフェードフレームインデックスまで、アニメーションを黒からフルカラーにフェードさせます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFadeStartFrames(
int animationId, int fade);

// Class Plugin
ChromaAnimationAPI::FadeStartFrames(
int animationId, int fade);

PluginFadeStartFramesName

0 からフェードフレームインデックスまで、アニメーションを黒からフルカラーにフェードさせます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFadeStartFramesName(
const wchar_t* path, int fade);

// Class Plugin
ChromaAnimationAPI::FadeStartFramesName(
const wchar_t* path, int fade);

PluginFadeStartFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFadeStartFramesNameD(
const wchar_t* path, double fade);

// Class Plugin
double result = ChromaAnimationAPI::FadeStartFramesNameD(
const wchar_t* path, double fade);

PluginFillColor

指定したフレームのすべての色に、RGB 値を設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillColor(
int animationId, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::FillColor(
int animationId, int frameId, int color);

PluginFillColorAllFrames

すべてのフレームのすべての色に、RGB 値を設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillColorAllFrames(
int animationId, int color);

// Class Plugin
ChromaAnimationAPI::FillColorAllFrames(
int animationId, int color);

PluginFillColorAllFramesName

すべてのフレームのすべての色に、RGB 値を設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillColorAllFramesName(
const wchar_t* path, int color);

// Class Plugin
ChromaAnimationAPI::FillColorAllFramesName(
const wchar_t* path, int color);

PluginFillColorAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillColorAllFramesNameD(
const wchar_t* path, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillColorAllFramesNameD(
const wchar_t* path, double color);

PluginFillColorAllFramesRGB

すべてのフレームのすべての色に、RGB 値を設定します。赤、緑、青のパラメーターには、0 から 255 の範囲を使用します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillColorAllFramesRGB(
int animationId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillColorAllFramesRGB(
int animationId, int red, int green, int blue);

PluginFillColorAllFramesRGBName

すべてのフレームのすべての色に、RGB 値を設定します。赤、緑、青のパラメーターには、0 から 255 の範囲を使用します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillColorAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillColorAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

PluginFillColorAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillColorAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillColorAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

PluginFillColorName

指定したフレームのすべての色に、RGB 値を設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillColorName(
const wchar_t* path, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::FillColorName(
const wchar_t* path, int frameId, int color);

PluginFillColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillColorNameD(
const wchar_t* path, double frameId, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillColorNameD(
const wchar_t* path, double frameId, double color);

PluginFillColorRGB

指定したフレームのすべての色に、RGB 値を設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillColorRGB(
int animationId, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillColorRGB(
int animationId, int frameId, int red, int green, int blue);

PluginFillColorRGBName

指定したフレームのすべての色に、RGB 値を設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillColorRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillColorRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

PluginFillColorRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillColorRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillColorRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

PluginFillNonZeroColor

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。指定したフレームの一部の色に、RGB 値を設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColor(
int animationId, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColor(
int animationId, int frameId, int color);

PluginFillNonZeroColorAllFrames

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。すべてのフレームの一部の色に、RGB 値を設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColorAllFrames(
int animationId, int color);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColorAllFrames(
int animationId, int color);

PluginFillNonZeroColorAllFramesName

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。すべてのフレームの一部の色に、RGB 値を設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColorAllFramesName(
const wchar_t* path, int color);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColorAllFramesName(
const wchar_t* path, int color);

PluginFillNonZeroColorAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillNonZeroColorAllFramesNameD(
const wchar_t* path, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillNonZeroColorAllFramesNameD(
const wchar_t* path, double color);

PluginFillNonZeroColorAllFramesRGB

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。すべてのフレームの一部の色に、RGB 値を設定します。赤、緑、青のパラメーターには、0 から 255 の範囲を使用します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColorAllFramesRGB(
int animationId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColorAllFramesRGB(
int animationId, int red, int green, int blue);

PluginFillNonZeroColorAllFramesRGBName

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。すべてのフレームの一部の色に、RGB 値を設定します。赤、緑、青のパラメーターには、0 から 255 の範囲を使用します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColorAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColorAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

PluginFillNonZeroColorAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillNonZeroColorAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillNonZeroColorAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

PluginFillNonZeroColorName

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。指定したフレームの一部の色に、RGB 値を設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColorName(
const wchar_t* path, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColorName(
const wchar_t* path, int frameId, int color);

PluginFillNonZeroColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillNonZeroColorNameD(
const wchar_t* path, double frameId, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillNonZeroColorNameD(
const wchar_t* path, double frameId, double color);

PluginFillNonZeroColorRGB

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。指定したフレームの一部の色に、RGB 値を設定します。赤、緑、青のパラメーターには、0 から 255 の範囲を使用します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColorRGB(
int animationId, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColorRGB(
int animationId, int frameId, int red, int green, int blue);

PluginFillNonZeroColorRGBName

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。指定したフレームの一部の色に、RGB 値を設定します。赤、緑、青のパラメーターには、0 から 255 の範囲を使用します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillNonZeroColorRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillNonZeroColorRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

PluginFillNonZeroColorRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillNonZeroColorRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillNonZeroColorRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

PluginFillRandomColors

指定したフレームを、ランダムな RGB 値で埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColors(
int animationId, int frameId);

// Class Plugin
ChromaAnimationAPI::FillRandomColors(
int animationId, int frameId);

PluginFillRandomColorsAllFrames

すべてのフレームを、ランダムな RGB 値で埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColorsAllFrames(int animationId);

// Class Plugin
ChromaAnimationAPI::FillRandomColorsAllFrames(int animationId);

PluginFillRandomColorsAllFramesName

すべてのフレームを、ランダムな RGB 値で埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColorsAllFramesName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::FillRandomColorsAllFramesName(const wchar_t* path);

PluginFillRandomColorsAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillRandomColorsAllFramesNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::FillRandomColorsAllFramesNameD(const wchar_t* path);

PluginFillRandomColorsBlackAndWhite

指定したフレームを、ランダムな白黒の値で埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColorsBlackAndWhite(
int animationId, int frameId);

// Class Plugin
ChromaAnimationAPI::FillRandomColorsBlackAndWhite(
int animationId, int frameId);

PluginFillRandomColorsBlackAndWhiteAllFrames

すべてのフレームを、ランダムな白黒の値で埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColorsBlackAndWhiteAllFrames(int animationId);

// Class Plugin
ChromaAnimationAPI::FillRandomColorsBlackAndWhiteAllFrames(int animationId);

PluginFillRandomColorsBlackAndWhiteAllFramesName

すべてのフレームを、ランダムな白黒の値で埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColorsBlackAndWhiteAllFramesName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::FillRandomColorsBlackAndWhiteAllFramesName(const wchar_t* path);

PluginFillRandomColorsBlackAndWhiteAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillRandomColorsBlackAndWhiteAllFramesNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::FillRandomColorsBlackAndWhiteAllFramesNameD(const wchar_t* path);

PluginFillRandomColorsBlackAndWhiteName

指定したフレームを、ランダムな白黒の値で埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColorsBlackAndWhiteName(
const wchar_t* path, int frameId);

// Class Plugin
ChromaAnimationAPI::FillRandomColorsBlackAndWhiteName(
const wchar_t* path, int frameId);

PluginFillRandomColorsBlackAndWhiteNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillRandomColorsBlackAndWhiteNameD(
const wchar_t* path, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::FillRandomColorsBlackAndWhiteNameD(
const wchar_t* path, double frameId);

PluginFillRandomColorsName

指定したフレームを、ランダムな RGB 値で埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillRandomColorsName(
const wchar_t* path, int frameId);

// Class Plugin
ChromaAnimationAPI::FillRandomColorsName(
const wchar_t* path, int frameId);

PluginFillRandomColorsNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillRandomColorsNameD(
const wchar_t* path, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::FillRandomColorsNameD(
const wchar_t* path, double frameId);

PluginFillThresholdColors

アニメーションの色が RGB しきい値より小さい箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColors(
int animationId, int frameId, int threshold, int color);

// Class Plugin
ChromaAnimationAPI::FillThresholdColors(
int animationId, int frameId, int threshold, int color);

PluginFillThresholdColorsAllFrames

アニメーションの色が RGB しきい値より小さい箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsAllFrames(
int animationId, int threshold, int color);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsAllFrames(
int animationId, int threshold, int color);

PluginFillThresholdColorsAllFramesName

アニメーションの色が RGB しきい値より小さい箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsAllFramesName(
const wchar_t* path, int threshold, int color);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsAllFramesName(
const wchar_t* path, int threshold, int color);

PluginFillThresholdColorsAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdColorsAllFramesNameD(
const wchar_t* path, double threshold, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdColorsAllFramesNameD(
const wchar_t* path, double threshold, double color);

PluginFillThresholdColorsAllFramesRGB

アニメーションの色がしきい値より小さい箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsAllFramesRGB(
int animationId, int threshold, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsAllFramesRGB(
int animationId, int threshold, int red, int green, int blue);

PluginFillThresholdColorsAllFramesRGBName

アニメーションの色がしきい値より小さい箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsAllFramesRGBName(
const wchar_t* path, int threshold, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsAllFramesRGBName(
const wchar_t* path, int threshold, int red, int green, int blue);

PluginFillThresholdColorsAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdColorsAllFramesRGBNameD(
const wchar_t* path, double threshold, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdColorsAllFramesRGBNameD(
const wchar_t* path, double threshold, double red, double green, double blue);

PluginFillThresholdColorsMinMaxAllFramesRGB

アニメーションの色が最小しきい値より小さい箇所を最小の RGB カラーで、最大しきい値より大きい箇所を最大の RGB カラーで、すべてのフレームについて埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsMinMaxAllFramesRGB(
int animationId, int minThreshold, int minRed, int minGreen, int minBlue,
int maxThreshold, int maxRed, int maxGreen, int maxBlue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsMinMaxAllFramesRGB(
int animationId, int minThreshold, int minRed, int minGreen, int minBlue,
int maxThreshold, int maxRed, int maxGreen, int maxBlue);

PluginFillThresholdColorsMinMaxAllFramesRGBName

アニメーションの色が最小しきい値より小さい箇所を最小の RGB カラーで、最大しきい値より大きい箇所を最大の RGB カラーで、すべてのフレームについて埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsMinMaxAllFramesRGBName(
const wchar_t* path, int minThreshold, int minRed, int minGreen, int minBlue,
int maxThreshold, int maxRed, int maxGreen, int maxBlue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsMinMaxAllFramesRGBName(
const wchar_t* path, int minThreshold, int minRed, int minGreen, int minBlue,
int maxThreshold, int maxRed, int maxGreen, int maxBlue);

PluginFillThresholdColorsMinMaxAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdColorsMinMaxAllFramesRGBNameD(
const wchar_t* path, double minThreshold, double minRed, double minGreen,
double minBlue, double maxThreshold, double maxRed, double maxGreen, double maxBlue);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdColorsMinMaxAllFramesRGBNameD(
const wchar_t* path, double minThreshold, double minRed, double minGreen,
double minBlue, double maxThreshold, double maxRed, double maxGreen, double maxBlue);

PluginFillThresholdColorsMinMaxRGB

アニメーションの色が最小しきい値より小さい箇所を最小の RGB カラーで、最大しきい値より大きい箇所を最大の RGB カラーで、指定したフレームについて埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsMinMaxRGB(
int animationId, int frameId, int minThreshold, int minRed, int minGreen,
int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsMinMaxRGB(
int animationId, int frameId, int minThreshold, int minRed, int minGreen,
int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);

PluginFillThresholdColorsMinMaxRGBName

アニメーションの色が最小しきい値より小さい箇所を最小の RGB カラーで、最大しきい値より大きい箇所を最大の RGB カラーで、指定したフレームについて埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsMinMaxRGBName(
const wchar_t* path, int frameId, int minThreshold, int minRed, int minGreen,
int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsMinMaxRGBName(
const wchar_t* path, int frameId, int minThreshold, int minRed, int minGreen,
int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);

PluginFillThresholdColorsMinMaxRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdColorsMinMaxRGBNameD(
const wchar_t* path, double frameId, double minThreshold, double minRed,
double minGreen, double minBlue, double maxThreshold, double maxRed, double maxGreen,
double maxBlue);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdColorsMinMaxRGBNameD(
const wchar_t* path, double frameId, double minThreshold, double minRed,
double minGreen, double minBlue, double maxThreshold, double maxRed, double maxGreen,
double maxBlue);

PluginFillThresholdColorsName

アニメーションの色が RGB しきい値より小さい箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsName(
const wchar_t* path, int frameId, int threshold, int color);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsName(
const wchar_t* path, int frameId, int threshold, int color);

PluginFillThresholdColorsNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdColorsNameD(
const wchar_t* path, double frameId, double threshold, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdColorsNameD(
const wchar_t* path, double frameId, double threshold, double color);

PluginFillThresholdColorsRGB

アニメーションの色が RGB しきい値より小さい箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsRGB(
int animationId, int frameId, int threshold, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsRGB(
int animationId, int frameId, int threshold, int red, int green, int blue);

PluginFillThresholdColorsRGBName

アニメーションの色が RGB しきい値より小さい箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdColorsRGBName(
const wchar_t* path, int frameId, int threshold, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdColorsRGBName(
const wchar_t* path, int frameId, int threshold, int red, int green, int blue);

PluginFillThresholdColorsRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdColorsRGBNameD(
const wchar_t* path, double frameId, double threshold, double red, double green,
double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdColorsRGBNameD(
const wchar_t* path, double frameId, double threshold, double red, double green,
double blue);

PluginFillThresholdRGBColorsAllFramesRGB

アニメーションの色が RGB しきい値より小さい箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdRGBColorsAllFramesRGB(
int animationId, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdRGBColorsAllFramesRGB(
int animationId, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

PluginFillThresholdRGBColorsAllFramesRGBName

アニメーションの色が RGB しきい値より小さい箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdRGBColorsAllFramesRGBName(
const wchar_t* path, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdRGBColorsAllFramesRGBName(
const wchar_t* path, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

PluginFillThresholdRGBColorsAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdRGBColorsAllFramesRGBNameD(
const wchar_t* path, double redThreshold, double greenThreshold, double blueThreshold,
double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdRGBColorsAllFramesRGBNameD(
const wchar_t* path, double redThreshold, double greenThreshold, double blueThreshold,
double red, double green, double blue);

PluginFillThresholdRGBColorsRGB

アニメーションの色が RGB しきい値より小さい箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdRGBColorsRGB(
int animationId, int frameId, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdRGBColorsRGB(
int animationId, int frameId, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

PluginFillThresholdRGBColorsRGBName

アニメーションの色が RGB しきい値より小さい箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillThresholdRGBColorsRGBName(
const wchar_t* path, int frameId, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillThresholdRGBColorsRGBName(
const wchar_t* path, int frameId, int redThreshold, int greenThreshold, int blueThreshold,
int red, int green, int blue);

PluginFillThresholdRGBColorsRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillThresholdRGBColorsRGBNameD(
const wchar_t* path, double frameId, double redThreshold, double greenThreshold,
double blueThreshold, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillThresholdRGBColorsRGBNameD(
const wchar_t* path, double frameId, double redThreshold, double greenThreshold,
double blueThreshold, double red, double green, double blue);

PluginFillZeroColor

アニメーションの色が 0 の箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColor(
int animationId, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::FillZeroColor(
int animationId, int frameId, int color);

PluginFillZeroColorAllFrames

アニメーションの色が 0 の箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColorAllFrames(
int animationId, int color);

// Class Plugin
ChromaAnimationAPI::FillZeroColorAllFrames(
int animationId, int color);

PluginFillZeroColorAllFramesName

アニメーションの色が 0 の箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColorAllFramesName(
const wchar_t* path, int color);

// Class Plugin
ChromaAnimationAPI::FillZeroColorAllFramesName(
const wchar_t* path, int color);

PluginFillZeroColorAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillZeroColorAllFramesNameD(
const wchar_t* path, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillZeroColorAllFramesNameD(
const wchar_t* path, double color);

PluginFillZeroColorAllFramesRGB

アニメーションの色が 0 の箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColorAllFramesRGB(
int animationId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillZeroColorAllFramesRGB(
int animationId, int red, int green, int blue);

PluginFillZeroColorAllFramesRGBName

アニメーションの色が 0 の箇所を、すべてのフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColorAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillZeroColorAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

PluginFillZeroColorAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillZeroColorAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillZeroColorAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

PluginFillZeroColorName

アニメーションの色が 0 の箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColorName(
const wchar_t* path, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::FillZeroColorName(
const wchar_t* path, int frameId, int color);

PluginFillZeroColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillZeroColorNameD(
const wchar_t* path, double frameId, double color);

// Class Plugin
double result = ChromaAnimationAPI::FillZeroColorNameD(
const wchar_t* path, double frameId, double color);

PluginFillZeroColorRGB

アニメーションの色が 0 の箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColorRGB(
int animationId, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillZeroColorRGB(
int animationId, int frameId, int red, int green, int blue);

PluginFillZeroColorRGBName

アニメーションの色が 0 の箇所を、指定したフレームの RGB カラーで埋めます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginFillZeroColorRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::FillZeroColorRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

PluginFillZeroColorRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginFillZeroColorRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::FillZeroColorRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

PluginGet1DColor

1D の led を指定して、フレームのアニメーションカラーを取得します。led は 0 以上で、MaxLeds 未満にする必要があります。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API int PluginGet1DColor(
int animationId, int frameId, int led);

// Class Plugin
int result = ChromaAnimationAPI::Get1DColor(
int animationId, int frameId, int led);

PluginGet1DColorName

1D の led を指定して、フレームのアニメーションカラーを取得します。led は 0 以上で、MaxLeds 未満にする必要があります。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API int PluginGet1DColorName(
const wchar_t* path, int frameId, int led);

// Class Plugin
int result = ChromaAnimationAPI::Get1DColorName(
const wchar_t* path, int frameId, int led);

PluginGet1DColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGet1DColorNameD(
const wchar_t* path, double frameId, double led);

// Class Plugin
double result = ChromaAnimationAPI::Get1DColorNameD(
const wchar_t* path, double frameId, double led);

PluginGet2DColor

2D の row と column を指定して、フレームのアニメーションカラーを取得します。row は 0 以上で、MaxRow 未満にする必要があります。column は 0 以上で、MaxColumn 未満にする必要があります。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API int PluginGet2DColor(
int animationId, int frameId, int row, int column);

// Class Plugin
int result = ChromaAnimationAPI::Get2DColor(
int animationId, int frameId, int row, int column);

PluginGet2DColorName

2D の row と column を指定して、フレームのアニメーションカラーを取得します。row は 0 以上で、MaxRow 未満にする必要があります。column は 0 以上で、MaxColumn 未満にする必要があります。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API int PluginGet2DColorName(
const wchar_t* path, int frameId, int row, int column);

// Class Plugin
int result = ChromaAnimationAPI::Get2DColorName(
const wchar_t* path, int frameId, int row, int column);

PluginGet2DColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGet2DColorNameD(
const wchar_t* path, double frameId, double row, double column);

// Class Plugin
double result = ChromaAnimationAPI::Get2DColorNameD(
const wchar_t* path, double frameId, double row, double column);

PluginGetAnimation

名前付きアニメーションのアニメーション ID を取得します。

// DLL Interface
EXPORT_API int PluginGetAnimation(const wchar_t* name);

// Class Plugin
int result = ChromaAnimationAPI::GetAnimation(const wchar_t* name);

PluginGetAnimationCount

PluginGetAnimationCount は、読み込まれているアニメーションの数を返します。

// DLL Interface
EXPORT_API int PluginGetAnimationCount();

// Class Plugin
int result = ChromaAnimationAPI::GetAnimationCount();

PluginGetAnimationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetAnimationD(const wchar_t* name);

// Class Plugin
double result = ChromaAnimationAPI::GetAnimationD(const wchar_t* name);

PluginGetAnimationId

PluginGetAnimationId は、読み込まれているアニメーションの index を指定して、animationId を返します。index は 0 から始まり、PluginGetAnimationCount が返す数より小さい値です。アニメーションの名前を取得するには、PluginGetAnimationName を使用します。

// DLL Interface
EXPORT_API int PluginGetAnimationId(int index);

// Class Plugin
int result = ChromaAnimationAPI::GetAnimationId(int index);

PluginGetAnimationName

PluginGetAnimationName は animationId を受け取り、.chroma アニメーションファイルのアニメーション名を返します。名前がない場合は、空の文字列が返されます。

// DLL Interface
EXPORT_API const wchar_t* PluginGetAnimationName(int animationId);

// Class Plugin
const wchar_t* result = ChromaAnimationAPI::GetAnimationName(int animationId);

PluginGetCurrentFrame

ID で参照したアニメーションの現在のフレームを取得します。

// DLL Interface
EXPORT_API int PluginGetCurrentFrame(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::GetCurrentFrame(int animationId);

PluginGetCurrentFrameName

名前で参照したアニメーションの現在のフレームを取得します。

// DLL Interface
EXPORT_API int PluginGetCurrentFrameName(const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::GetCurrentFrameName(const wchar_t* path);

PluginGetCurrentFrameNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetCurrentFrameNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::GetCurrentFrameNameD(const wchar_t* path);

PluginGetDevice

Chroma アニメーションの EChromaSDKDevice1DEnum または EChromaSDKDevice2DEnum を、deviceType に応じて、成功すると整数で返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetDevice(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::GetDevice(int animationId);

PluginGetDeviceName

Chroma アニメーションの EChromaSDKDevice1DEnum または EChromaSDKDevice2DEnum を、deviceType に応じて、成功すると整数で返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetDeviceName(const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::GetDeviceName(const wchar_t* path);

PluginGetDeviceNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetDeviceNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::GetDeviceNameD(const wchar_t* path);

PluginGetDeviceType

Chroma アニメーションの EChromaSDKDeviceTypeEnum を、成功すると整数で返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetDeviceType(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::GetDeviceType(int animationId);

PluginGetDeviceTypeName

Chroma アニメーションの EChromaSDKDeviceTypeEnum を、成功すると整数で返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetDeviceTypeName(const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::GetDeviceTypeName(const wchar_t* path);

PluginGetDeviceTypeNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetDeviceTypeNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::GetDeviceTypeNameD(const wchar_t* path);

PluginGetFrame

ID で参照した Chroma アニメーションのフレームの色と長さ(秒)を取得します。color は、deviceType/device に想定されるサイズの配列である必要があります。length パラメーターは、color 配列のサイズです。EChromaSDKDevice1DEnum の場合、配列のサイズは MAX LEDS にします。EChromaSDKDevice2DEnum の場合、配列のサイズは MAX ROW × MAX COLUMN にします。キーが設定されるのは、EChromaSDKDevice2DEnum::DE_Keyboard と EChromaSDKDevice2DEnum::DE_KeyboardExtended の場合のみです。キーは、EChromaSDKDevice2DEnum::DE_Keyboard の MAX_ROW × MAX_COLUMN の keysLength のみを使用します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetFrame(
int animationId, int frameId, float* duration, int* colors, int length, int* keys,
int keysLength);

// Class Plugin
int result = ChromaAnimationAPI::GetFrame(
int animationId, int frameId, float* duration, int* colors, int length, int* keys,
int keysLength);

PluginGetFrameCount

成功すると、Chroma アニメーションのフレーム数を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetFrameCount(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::GetFrameCount(int animationId);

PluginGetFrameCountName

成功すると、Chroma アニメーションのフレーム数を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetFrameCountName(const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::GetFrameCountName(const wchar_t* path);

PluginGetFrameCountNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetFrameCountNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::GetFrameCountNameD(const wchar_t* path);

PluginGetFrameDuration

成功すると、アニメーションフレームの長さを秒で返します。失敗すると 0 を返します。

// DLL Interface
EXPORT_API float PluginGetFrameDuration(
int animationId, int frameId);

// Class Plugin
float result = ChromaAnimationAPI::GetFrameDuration(
int animationId, int frameId);

PluginGetFrameDurationName

成功すると、アニメーションフレームの長さを秒で返します。失敗すると 0 を返します。

// DLL Interface
EXPORT_API float PluginGetFrameDurationName(
const wchar_t* path, int frameId);

// Class Plugin
float result = ChromaAnimationAPI::GetFrameDurationName(
const wchar_t* path, int frameId);

PluginGetFrameName

名前で参照した Chroma アニメーションのフレームの色と長さ(秒)を取得します。color は、deviceType/device に想定されるサイズの配列である必要があります。length パラメーターは、color 配列のサイズです。EChromaSDKDevice1DEnum の場合、配列のサイズは MAX LEDS にします。EChromaSDKDevice2DEnum の場合、配列のサイズは MAX ROW × MAX COLUMN にします。キーが設定されるのは、EChromaSDKDevice2DEnum::DE_Keyboard と EChromaSDKDevice2DEnum::DE_KeyboardExtended の場合のみです。キーは、EChromaSDKDevice2DEnum::DE_Keyboard の MAX_ROW × MAX_COLUMN の keysLength のみを使用します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetFrameName(
const wchar_t* path, int frameId, float* duration, int* colors, int length,
int* keys, int keysLength);

// Class Plugin
int result = ChromaAnimationAPI::GetFrameName(
const wchar_t* path, int frameId, float* duration, int* colors, int length,
int* keys, int keysLength);

PluginGetKeyColor

ID で参照したアニメーションの、指定したフレームのキーの色を取得します。

// DLL Interface
EXPORT_API int PluginGetKeyColor(
int animationId, int frameId, int rzkey);

// Class Plugin
int result = ChromaAnimationAPI::GetKeyColor(
int animationId, int frameId, int rzkey);

PluginGetKeyColorD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetKeyColorD(
const wchar_t* path, double frameId, double rzkey);

// Class Plugin
double result = ChromaAnimationAPI::GetKeyColorD(
const wchar_t* path, double frameId, double rzkey);

PluginGetKeyColorName

名前で参照したアニメーションの、指定したフレームのキーの色を取得します。

// DLL Interface
EXPORT_API int PluginGetKeyColorName(
const wchar_t* path, int frameId, int rzkey);

// Class Plugin
int result = ChromaAnimationAPI::GetKeyColorName(
const wchar_t* path, int frameId, int rzkey);

PluginGetLibraryLoadedState

プラグインが正常に初期化されている場合は RZRESULT_SUCCESS を返します。コア Chroma ライブラリが見つからない場合は RZRESULT_DLL_NOT_FOUND を返します。コア Chroma ライブラリの署名が無効な場合は RZRESULT_DLL_INVALID_SIGNATURE を返します。

// DLL Interface
EXPORT_API RZRESULT PluginGetLibraryLoadedState();

// Class Plugin
RZRESULT result = ChromaAnimationAPI::GetLibraryLoadedState();

PluginGetLibraryLoadedStateD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetLibraryLoadedStateD();

// Class Plugin
double result = ChromaAnimationAPI::GetLibraryLoadedStateD();

PluginGetMaxColumn

EChromaSDKDevice2DEnum デバイスを指定して、MAX COLUMN を、成功すると整数で返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetMaxColumn(int device);

// Class Plugin
int result = ChromaAnimationAPI::GetMaxColumn(int device);

PluginGetMaxColumnD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetMaxColumnD(double device);

// Class Plugin
double result = ChromaAnimationAPI::GetMaxColumnD(double device);

PluginGetMaxLeds

EChromaSDKDevice1DEnum デバイスを指定して、MAX LEDS を、成功すると整数で返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetMaxLeds(int device);

// Class Plugin
int result = ChromaAnimationAPI::GetMaxLeds(int device);

PluginGetMaxLedsD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetMaxLedsD(double device);

// Class Plugin
double result = ChromaAnimationAPI::GetMaxLedsD(double device);

PluginGetMaxRow

EChromaSDKDevice2DEnum デバイスを指定して、MAX ROW を、成功すると整数で返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginGetMaxRow(int device);

// Class Plugin
int result = ChromaAnimationAPI::GetMaxRow(int device);

PluginGetMaxRowD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetMaxRowD(double device);

// Class Plugin
double result = ChromaAnimationAPI::GetMaxRowD(double device);

PluginGetPlayingAnimationCount

PluginGetPlayingAnimationCount は、再生中のアニメーションの数を返します。

// DLL Interface
EXPORT_API int PluginGetPlayingAnimationCount();

// Class Plugin
int result = ChromaAnimationAPI::GetPlayingAnimationCount();

PluginGetPlayingAnimationId

PluginGetPlayingAnimationId は、再生中のアニメーションの index を指定して、animationId を返します。index は 0 から始まり、PluginGetPlayingAnimationCount が返す数より小さい値です。アニメーションの名前を取得するには、PluginGetAnimationName を使用します。

// DLL Interface
EXPORT_API int PluginGetPlayingAnimationId(int index);

// Class Plugin
int result = ChromaAnimationAPI::GetPlayingAnimationId(int index);

PluginGetRGB

赤、緑、青を指定して、RGB カラーを取得します。

// DLL Interface
EXPORT_API int PluginGetRGB(
int red, int green, int blue);

// Class Plugin
int result = ChromaAnimationAPI::GetRGB(
int red, int green, int blue);

PluginGetRGBD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginGetRGBD(
double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::GetRGBD(
double red, double green, double blue);

PluginGetTotalDuration

成功すると、アニメーション全体の長さを秒で返します。失敗すると 0 を返します。

// DLL Interface
EXPORT_API float PluginGetTotalDuration(int animationId);

// Class Plugin
float result = ChromaAnimationAPI::GetTotalDuration(int animationId);

PluginGetTotalDurationName

成功すると、アニメーション全体の長さを秒で返します。失敗すると 0 を返します。

// DLL Interface
EXPORT_API float PluginGetTotalDurationName(const wchar_t* path);

// Class Plugin
float result = ChromaAnimationAPI::GetTotalDurationName(const wchar_t* path);

PluginHasAnimationLoop

ID で参照したアニメーションで、ループが有効かどうかを確認します。

// DLL Interface
EXPORT_API bool PluginHasAnimationLoop(int animationId);

// Class Plugin
bool result = ChromaAnimationAPI::HasAnimationLoop(int animationId);

PluginHasAnimationLoopName

名前で参照したアニメーションで、ループが有効かどうかを確認します。

// DLL Interface
EXPORT_API bool PluginHasAnimationLoopName(const wchar_t* path);

// Class Plugin
bool result = ChromaAnimationAPI::HasAnimationLoopName(const wchar_t* path);

PluginHasAnimationLoopNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginHasAnimationLoopNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::HasAnimationLoopNameD(const wchar_t* path);

PluginInit

ChromaSDK を初期化します。0 は成功、それ以外は失敗を示します。多くの API メソッドは、ChromaSDK が初期化されていない場合に自動的に初期化します。

// DLL Interface
EXPORT_API RZRESULT PluginInit();

// Class Plugin
RZRESULT result = ChromaAnimationAPI::Init();

PluginInitD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginInitD();

// Class Plugin
double result = ChromaAnimationAPI::InitD();

PluginInitSDK

ChromaSDK を初期化します。AppInfo が Synapse の詳細を設定します。0 は成功、それ以外は失敗を示します。多くの API メソッドは、ChromaSDK が初期化されていない場合に自動的に初期化します。

// DLL Interface
EXPORT_API RZRESULT PluginInitSDK(
ChromaSDK::APPINFOTYPE* AppInfo);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::InitSDK(
ChromaSDK::APPINFOTYPE* AppInfo);

PluginInsertDelay

フレームを遅延の回数分だけ複製して、アニメーションの遅延を挿入します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginInsertDelay(
int animationId, int frameId, int delay);

// Class Plugin
ChromaAnimationAPI::InsertDelay(
int animationId, int frameId, int delay);

PluginInsertDelayName

フレームを遅延の回数分だけ複製して、アニメーションの遅延を挿入します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginInsertDelayName(
const wchar_t* path, int frameId, int delay);

// Class Plugin
ChromaAnimationAPI::InsertDelayName(
const wchar_t* path, int frameId, int delay);

PluginInsertDelayNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginInsertDelayNameD(
const wchar_t* path, double frameId, double delay);

// Class Plugin
double result = ChromaAnimationAPI::InsertDelayNameD(
const wchar_t* path, double frameId, double delay);

PluginInsertFrame

ソースフレームインデックスを、ターゲットフレームインデックスに複製します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginInsertFrame(
int animationId, int sourceFrame, int targetFrame);

// Class Plugin
ChromaAnimationAPI::InsertFrame(
int animationId, int sourceFrame, int targetFrame);

PluginInsertFrameName

ソースフレームインデックスを、ターゲットフレームインデックスに複製します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginInsertFrameName(
const wchar_t* path, int sourceFrame, int targetFrame);

// Class Plugin
ChromaAnimationAPI::InsertFrameName(
const wchar_t* path, int sourceFrame, int targetFrame);

PluginInsertFrameNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginInsertFrameNameD(
const wchar_t* path, double sourceFrame, double targetFrame);

// Class Plugin
double result = ChromaAnimationAPI::InsertFrameNameD(
const wchar_t* path, double sourceFrame, double targetFrame);

PluginInvertColors

指定したフレームのすべての色を反転します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginInvertColors(
int animationId, int frameId);

// Class Plugin
ChromaAnimationAPI::InvertColors(
int animationId, int frameId);

PluginInvertColorsAllFrames

すべてのフレームのすべての色を反転します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginInvertColorsAllFrames(int animationId);

// Class Plugin
ChromaAnimationAPI::InvertColorsAllFrames(int animationId);

PluginInvertColorsAllFramesName

すべてのフレームのすべての色を反転します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginInvertColorsAllFramesName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::InvertColorsAllFramesName(const wchar_t* path);

PluginInvertColorsAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginInvertColorsAllFramesNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::InvertColorsAllFramesNameD(const wchar_t* path);

PluginInvertColorsName

指定したフレームのすべての色を反転します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginInvertColorsName(
const wchar_t* path, int frameId);

// Class Plugin
ChromaAnimationAPI::InvertColorsName(
const wchar_t* path, int frameId);

PluginInvertColorsNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginInvertColorsNameD(
const wchar_t* path, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::InvertColorsNameD(
const wchar_t* path, double frameId);

PluginIsAnimationPaused

ID で参照したアニメーションが一時停止中かどうかを確認します。

// DLL Interface
EXPORT_API bool PluginIsAnimationPaused(int animationId);

// Class Plugin
bool result = ChromaAnimationAPI::IsAnimationPaused(int animationId);

PluginIsAnimationPausedName

名前で参照したアニメーションが一時停止中かどうかを確認します。

// DLL Interface
EXPORT_API bool PluginIsAnimationPausedName(const wchar_t* path);

// Class Plugin
bool result = ChromaAnimationAPI::IsAnimationPausedName(const wchar_t* path);

PluginIsAnimationPausedNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginIsAnimationPausedNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::IsAnimationPausedNameD(const wchar_t* path);

PluginIsDialogOpen

エディターダイアログは非ブロッキングのモーダルウィンドウです。このメソッドは、モーダルウィンドウが開いている場合は true、それ以外の場合は false を返します。

// DLL Interface
EXPORT_API bool PluginIsDialogOpen();

// Class Plugin
bool result = ChromaAnimationAPI::IsDialogOpen();

PluginIsDialogOpenD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginIsDialogOpenD();

// Class Plugin
double result = ChromaAnimationAPI::IsDialogOpenD();

PluginIsInitialized

プラグインが初期化されている場合は true を返します。初期化されていない場合は false を返します。

// DLL Interface
EXPORT_API bool PluginIsInitialized();

// Class Plugin
bool result = ChromaAnimationAPI::IsInitialized();

PluginIsInitializedD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginIsInitializedD();

// Class Plugin
double result = ChromaAnimationAPI::IsInitializedD();

PluginIsPlatformSupported

メソッドを呼び出せる場合、メソッドは true を返します。

// DLL Interface
EXPORT_API bool PluginIsPlatformSupported();

// Class Plugin
bool result = ChromaAnimationAPI::IsPlatformSupported();

PluginIsPlatformSupportedD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginIsPlatformSupportedD();

// Class Plugin
double result = ChromaAnimationAPI::IsPlatformSupportedD();

PluginIsPlaying

PluginIsPlayingName は、ChromaSDK の初期化を自動的に処理します。名前付きの .chroma アニメーションファイルは自動的に開かれます。このメソッドは、アニメーションが再生中かどうかを返します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API bool PluginIsPlaying(int animationId);

// Class Plugin
bool result = ChromaAnimationAPI::IsPlaying(int animationId);

PluginIsPlayingD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginIsPlayingD(double animationId);

// Class Plugin
double result = ChromaAnimationAPI::IsPlayingD(double animationId);

PluginIsPlayingName

PluginIsPlayingName は、ChromaSDK の初期化を自動的に処理します。名前付きの .chroma アニメーションファイルは自動的に開かれます。このメソッドは、アニメーションが再生中かどうかを返します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API bool PluginIsPlayingName(const wchar_t* path);

// Class Plugin
bool result = ChromaAnimationAPI::IsPlayingName(const wchar_t* path);

PluginIsPlayingNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginIsPlayingNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::IsPlayingNameD(const wchar_t* path);

PluginIsPlayingType

PluginIsPlayingType は、ChromaSDK の初期化を自動的に処理します。deviceType と device の組み合わせで再生中のアニメーションがある場合、このメソッドは true を返し、ない場合は false を返します。

// DLL Interface
EXPORT_API bool PluginIsPlayingType(
int deviceType, int device);

// Class Plugin
bool result = ChromaAnimationAPI::IsPlayingType(
int deviceType, int device);

PluginIsPlayingTypeD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginIsPlayingTypeD(
double deviceType, double device);

// Class Plugin
double result = ChromaAnimationAPI::IsPlayingTypeD(
double deviceType, double device);

PluginLerp

float 値に lerp 演算を適用します。

// DLL Interface
EXPORT_API float PluginLerp(
float start, float end, float amt);

// Class Plugin
float result = ChromaAnimationAPI::Lerp(
float start, float end, float amt);

PluginLerpColor

t を 0.0 から 1.0 の範囲として、ある色から別の色へ lerp します。

// DLL Interface
EXPORT_API int PluginLerpColor(
int from, int to, float t);

// Class Plugin
int result = ChromaAnimationAPI::LerpColor(
int from, int to, float t);

PluginLoadAnimation

アニメーションをすぐに再生できるよう、Chroma エフェクトを読み込みます。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginLoadAnimation(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::LoadAnimation(int animationId);

PluginLoadAnimationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginLoadAnimationD(double animationId);

// Class Plugin
double result = ChromaAnimationAPI::LoadAnimationD(double animationId);

PluginLoadAnimationName

名前付きアニメーションを読み込みます。

// DLL Interface
EXPORT_API void PluginLoadAnimationName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::LoadAnimationName(const wchar_t* path);

PluginLoadComposite

アニメーションの複合セットを読み込みます。

// DLL Interface
EXPORT_API void PluginLoadComposite(const wchar_t* name);

// Class Plugin
ChromaAnimationAPI::LoadComposite(const wchar_t* name);

PluginMakeBlankFrames

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色は既定で color になります。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFrames(
int animationId, int frameCount, float duration, int color);

// Class Plugin
ChromaAnimationAPI::MakeBlankFrames(
int animationId, int frameCount, float duration, int color);

PluginMakeBlankFramesName

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色は既定で color になります。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFramesName(
const wchar_t* path, int frameCount, float duration, int color);

// Class Plugin
ChromaAnimationAPI::MakeBlankFramesName(
const wchar_t* path, int frameCount, float duration, int color);

PluginMakeBlankFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMakeBlankFramesNameD(
const wchar_t* path, double frameCount, double duration, double color);

// Class Plugin
double result = ChromaAnimationAPI::MakeBlankFramesNameD(
const wchar_t* path, double frameCount, double duration, double color);

PluginMakeBlankFramesRandom

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色はランダムです。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFramesRandom(
int animationId, int frameCount, float duration);

// Class Plugin
ChromaAnimationAPI::MakeBlankFramesRandom(
int animationId, int frameCount, float duration);

PluginMakeBlankFramesRandomBlackAndWhite

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色はランダムな白黒です。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFramesRandomBlackAndWhite(
int animationId, int frameCount, float duration);

// Class Plugin
ChromaAnimationAPI::MakeBlankFramesRandomBlackAndWhite(
int animationId, int frameCount, float duration);

PluginMakeBlankFramesRandomBlackAndWhiteName

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色はランダムな白黒です。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFramesRandomBlackAndWhiteName(
const wchar_t* path, int frameCount, float duration);

// Class Plugin
ChromaAnimationAPI::MakeBlankFramesRandomBlackAndWhiteName(
const wchar_t* path, int frameCount, float duration);

PluginMakeBlankFramesRandomBlackAndWhiteNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMakeBlankFramesRandomBlackAndWhiteNameD(
const wchar_t* path, double frameCount, double duration);

// Class Plugin
double result = ChromaAnimationAPI::MakeBlankFramesRandomBlackAndWhiteNameD(
const wchar_t* path, double frameCount, double duration);

PluginMakeBlankFramesRandomName

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色はランダムです。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFramesRandomName(
const wchar_t* path, int frameCount, float duration);

// Class Plugin
ChromaAnimationAPI::MakeBlankFramesRandomName(
const wchar_t* path, int frameCount, float duration);

PluginMakeBlankFramesRandomNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMakeBlankFramesRandomNameD(
const wchar_t* path, double frameCount, double duration);

// Class Plugin
double result = ChromaAnimationAPI::MakeBlankFramesRandomNameD(
const wchar_t* path, double frameCount, double duration);

PluginMakeBlankFramesRGB

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色は既定で color になります。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFramesRGB(
int animationId, int frameCount, float duration, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::MakeBlankFramesRGB(
int animationId, int frameCount, float duration, int red, int green, int blue);

PluginMakeBlankFramesRGBName

フレーム数の長さの空のアニメーションを作成します。フレームの長さは既定で duration になります。フレームの色は既定で color になります。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMakeBlankFramesRGBName(
const wchar_t* path, int frameCount, float duration, int red, int green,
int blue);

// Class Plugin
ChromaAnimationAPI::MakeBlankFramesRGBName(
const wchar_t* path, int frameCount, float duration, int red, int green,
int blue);

PluginMakeBlankFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMakeBlankFramesRGBNameD(
const wchar_t* path, double frameCount, double duration, double red, double green,
double blue);

// Class Plugin
double result = ChromaAnimationAPI::MakeBlankFramesRGBNameD(
const wchar_t* path, double frameCount, double duration, double red, double green,
double blue);

PluginMirrorHorizontally

すべての Chroma アニメーションフレームで、カラーグリッドを水平方向に反転します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginMirrorHorizontally(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::MirrorHorizontally(int animationId);

PluginMirrorVertically

すべての Chroma アニメーションフレームで、カラーグリッドを垂直方向に反転します。このメソッドは、EChromaSDKDevice1DEnum デバイスには効果がありません。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginMirrorVertically(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::MirrorVertically(int animationId);

PluginMultiplyColorLerpAllFrames

t パラメーターにフレームインデックスをフレーム数で割った値を使い、色 1 から色 2 への lerp の結果を、色の強度に乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyColorLerpAllFrames(
int animationId, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyColorLerpAllFrames(
int animationId, int color1, int color2);

PluginMultiplyColorLerpAllFramesName

t パラメーターにフレームインデックスをフレーム数で割った値を使い、色 1 から色 2 への lerp の結果を、色の強度に乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyColorLerpAllFramesName(
const wchar_t* path, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyColorLerpAllFramesName(
const wchar_t* path, int color1, int color2);

PluginMultiplyColorLerpAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyColorLerpAllFramesNameD(
const wchar_t* path, double color1, double color2);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyColorLerpAllFramesNameD(
const wchar_t* path, double color1, double color2);

PluginMultiplyIntensity

フレーム内のすべての色に、強度の値を乗算します。有効な強度の範囲は 0.0 から 255.0 です。RGB の各成分には、同じ値が乗算されます。強度 0.5 は、色の値を半分にします。フレーム内の黒の色には、このメソッドは影響しません。

// DLL Interface
EXPORT_API void PluginMultiplyIntensity(
int animationId, int frameId, float intensity);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensity(
int animationId, int frameId, float intensity);

PluginMultiplyIntensityAllFrames

すべてのフレームのすべての色に、強度の値を乗算します。有効な強度の範囲は 0.0 から 255.0 です。RGB の各成分には、同じ値が乗算されます。強度 0.5 は、色の値を半分にします。フレーム内の黒の色には、このメソッドは影響しません。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityAllFrames(
int animationId, float intensity);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityAllFrames(
int animationId, float intensity);

PluginMultiplyIntensityAllFramesName

すべてのフレームのすべての色に、強度の値を乗算します。有効な強度の範囲は 0.0 から 255.0 です。RGB の各成分には、同じ値が乗算されます。強度 0.5 は、色の値を半分にします。フレーム内の黒の色には、このメソッドは影響しません。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityAllFramesName(
const wchar_t* path, float intensity);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityAllFramesName(
const wchar_t* path, float intensity);

PluginMultiplyIntensityAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyIntensityAllFramesNameD(
const wchar_t* path, double intensity);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyIntensityAllFramesNameD(
const wchar_t* path, double intensity);

PluginMultiplyIntensityAllFramesRGB

すべてのフレームに、RGB カラーの強度を乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityAllFramesRGB(
int animationId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityAllFramesRGB(
int animationId, int red, int green, int blue);

PluginMultiplyIntensityAllFramesRGBName

すべてのフレームに、RGB カラーの強度を乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityAllFramesRGBName(
const wchar_t* path, int red, int green, int blue);

PluginMultiplyIntensityAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyIntensityAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyIntensityAllFramesRGBNameD(
const wchar_t* path, double red, double green, double blue);

PluginMultiplyIntensityColor

指定したフレームに、RGB カラーの強度を乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityColor(
int animationId, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityColor(
int animationId, int frameId, int color);

PluginMultiplyIntensityColorAllFrames

すべてのフレームに、RGB カラーの強度を乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityColorAllFrames(
int animationId, int color);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityColorAllFrames(
int animationId, int color);

PluginMultiplyIntensityColorAllFramesName

すべてのフレームに、RGB カラーの強度を乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityColorAllFramesName(
const wchar_t* path, int color);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityColorAllFramesName(
const wchar_t* path, int color);

PluginMultiplyIntensityColorAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyIntensityColorAllFramesNameD(
const wchar_t* path, double color);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyIntensityColorAllFramesNameD(
const wchar_t* path, double color);

PluginMultiplyIntensityColorName

指定したフレームに、RGB カラーの強度を乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityColorName(
const wchar_t* path, int frameId, int color);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityColorName(
const wchar_t* path, int frameId, int color);

PluginMultiplyIntensityColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyIntensityColorNameD(
const wchar_t* path, double frameId, double color);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyIntensityColorNameD(
const wchar_t* path, double frameId, double color);

PluginMultiplyIntensityName

フレーム内のすべての色に、強度の値を乗算します。有効な強度の範囲は 0.0 から 255.0 です。RGB の各成分には、同じ値が乗算されます。強度 0.5 は、色の値を半分にします。フレーム内の黒の色には、このメソッドは影響しません。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityName(
const wchar_t* path, int frameId, float intensity);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityName(
const wchar_t* path, int frameId, float intensity);

PluginMultiplyIntensityNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyIntensityNameD(
const wchar_t* path, double frameId, double intensity);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyIntensityNameD(
const wchar_t* path, double frameId, double intensity);

PluginMultiplyIntensityRGB

指定したフレームに、RGB カラーの強度を乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityRGB(
int animationId, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityRGB(
int animationId, int frameId, int red, int green, int blue);

PluginMultiplyIntensityRGBName

指定したフレームに、RGB カラーの強度を乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyIntensityRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::MultiplyIntensityRGBName(
const wchar_t* path, int frameId, int red, int green, int blue);

PluginMultiplyIntensityRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyIntensityRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyIntensityRGBNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

PluginMultiplyNonZeroTargetColorLerp

フレームの色の値を t の値として使い、色 1 と色 2 の間の色の lerp の結果を、指定したフレームに乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyNonZeroTargetColorLerp(
int animationId, int frameId, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyNonZeroTargetColorLerp(
int animationId, int frameId, int color1, int color2);

PluginMultiplyNonZeroTargetColorLerpAllFrames

フレームの色の値を t の値として使い、色 1 と色 2 の間の色の lerp の結果を、すべてのフレームに乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyNonZeroTargetColorLerpAllFrames(
int animationId, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyNonZeroTargetColorLerpAllFrames(
int animationId, int color1, int color2);

PluginMultiplyNonZeroTargetColorLerpAllFramesName

フレームの色の値を t の値として使い、色 1 と色 2 の間の色の lerp の結果を、すべてのフレームに乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyNonZeroTargetColorLerpAllFramesName(
const wchar_t* path, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyNonZeroTargetColorLerpAllFramesName(
const wchar_t* path, int color1, int color2);

PluginMultiplyNonZeroTargetColorLerpAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyNonZeroTargetColorLerpAllFramesNameD(
const wchar_t* path, double color1, double color2);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyNonZeroTargetColorLerpAllFramesNameD(
const wchar_t* path, double color1, double color2);

PluginMultiplyNonZeroTargetColorLerpAllFramesRGB

フレームの色の値を t の値として使い、RGB 1 と RGB 2 の間の色の lerp の結果を、指定したフレームに乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyNonZeroTargetColorLerpAllFramesRGB(
int animationId, int red1, int green1, int blue1, int red2, int green2, int blue2);

// Class Plugin
ChromaAnimationAPI::MultiplyNonZeroTargetColorLerpAllFramesRGB(
int animationId, int red1, int green1, int blue1, int red2, int green2, int blue2);

PluginMultiplyNonZeroTargetColorLerpAllFramesRGBName

フレームの色の値を t の値として使い、RGB 1 と RGB 2 の間の色の lerp の結果を、指定したフレームに乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyNonZeroTargetColorLerpAllFramesRGBName(
const wchar_t* path, int red1, int green1, int blue1, int red2, int green2,
int blue2);

// Class Plugin
ChromaAnimationAPI::MultiplyNonZeroTargetColorLerpAllFramesRGBName(
const wchar_t* path, int red1, int green1, int blue1, int red2, int green2,
int blue2);

PluginMultiplyNonZeroTargetColorLerpAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyNonZeroTargetColorLerpAllFramesRGBNameD(
const wchar_t* path, double red1, double green1, double blue1, double red2,
double green2, double blue2);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyNonZeroTargetColorLerpAllFramesRGBNameD(
const wchar_t* path, double red1, double green1, double blue1, double red2,
double green2, double blue2);

PluginMultiplyTargetColorLerp

フレームの色の値を t の値として使い、色 1 と色 2 の間の色の lerp の結果を、指定したフレームに乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyTargetColorLerp(
int animationId, int frameId, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyTargetColorLerp(
int animationId, int frameId, int color1, int color2);

PluginMultiplyTargetColorLerpAllFrames

フレームの色の値を t の値として使い、色 1 と色 2 の間の色の lerp の結果を、すべてのフレームに乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyTargetColorLerpAllFrames(
int animationId, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyTargetColorLerpAllFrames(
int animationId, int color1, int color2);

PluginMultiplyTargetColorLerpAllFramesName

フレームの色の値を t の値として使い、色 1 と色 2 の間の色の lerp の結果を、すべてのフレームに乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyTargetColorLerpAllFramesName(
const wchar_t* path, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyTargetColorLerpAllFramesName(
const wchar_t* path, int color1, int color2);

PluginMultiplyTargetColorLerpAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyTargetColorLerpAllFramesNameD(
const wchar_t* path, double color1, double color2);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyTargetColorLerpAllFramesNameD(
const wchar_t* path, double color1, double color2);

PluginMultiplyTargetColorLerpAllFramesRGB

フレームの色の値を t の値として使い、RGB 1 と RGB 2 の間の色の lerp の結果を、すべてのフレームに乗算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyTargetColorLerpAllFramesRGB(
int animationId, int red1, int green1, int blue1, int red2, int green2, int blue2);

// Class Plugin
ChromaAnimationAPI::MultiplyTargetColorLerpAllFramesRGB(
int animationId, int red1, int green1, int blue1, int red2, int green2, int blue2);

PluginMultiplyTargetColorLerpAllFramesRGBName

フレームの色の値を t の値として使い、RGB 1 と RGB 2 の間の色の lerp の結果を、すべてのフレームに乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyTargetColorLerpAllFramesRGBName(
const wchar_t* path, int red1, int green1, int blue1, int red2, int green2,
int blue2);

// Class Plugin
ChromaAnimationAPI::MultiplyTargetColorLerpAllFramesRGBName(
const wchar_t* path, int red1, int green1, int blue1, int red2, int green2,
int blue2);

PluginMultiplyTargetColorLerpAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginMultiplyTargetColorLerpAllFramesRGBNameD(
const wchar_t* path, double red1, double green1, double blue1, double red2,
double green2, double blue2);

// Class Plugin
double result = ChromaAnimationAPI::MultiplyTargetColorLerpAllFramesRGBNameD(
const wchar_t* path, double red1, double green1, double blue1, double red2,
double green2, double blue2);

PluginMultiplyTargetColorLerpName

フレームの色の値を t の値として使い、色 1 と色 2 の間の色の lerp の結果を、指定したフレームに乗算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginMultiplyTargetColorLerpName(
const wchar_t* path, int frameId, int color1, int color2);

// Class Plugin
ChromaAnimationAPI::MultiplyTargetColorLerpName(
const wchar_t* path, int frameId, int color1, int color2);

PluginOffsetColors

RGB オフセットを使って、フレーム内のすべての色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetColors(
int animationId, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetColors(
int animationId, int frameId, int red, int green, int blue);

PluginOffsetColorsAllFrames

RGB オフセットを使って、すべてのフレームのすべての色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetColorsAllFrames(
int animationId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetColorsAllFrames(
int animationId, int red, int green, int blue);

PluginOffsetColorsAllFramesName

RGB オフセットを使って、すべてのフレームのすべての色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetColorsAllFramesName(
const wchar_t* path, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetColorsAllFramesName(
const wchar_t* path, int red, int green, int blue);

PluginOffsetColorsAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOffsetColorsAllFramesNameD(
const wchar_t* path, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::OffsetColorsAllFramesNameD(
const wchar_t* path, double red, double green, double blue);

PluginOffsetColorsName

RGB オフセットを使って、フレーム内のすべての色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetColorsName(
const wchar_t* path, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetColorsName(
const wchar_t* path, int frameId, int red, int green, int blue);

PluginOffsetColorsNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOffsetColorsNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::OffsetColorsNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

PluginOffsetNonZeroColors

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。RGB オフセットを使って、フレーム内の一部の色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetNonZeroColors(
int animationId, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetNonZeroColors(
int animationId, int frameId, int red, int green, int blue);

PluginOffsetNonZeroColorsAllFrames

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。RGB オフセットを使って、すべてのフレームの一部の色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetNonZeroColorsAllFrames(
int animationId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetNonZeroColorsAllFrames(
int animationId, int red, int green, int blue);

PluginOffsetNonZeroColorsAllFramesName

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。RGB オフセットを使って、すべてのフレームの一部の色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetNonZeroColorsAllFramesName(
const wchar_t* path, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetNonZeroColorsAllFramesName(
const wchar_t* path, int red, int green, int blue);

PluginOffsetNonZeroColorsAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOffsetNonZeroColorsAllFramesNameD(
const wchar_t* path, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::OffsetNonZeroColorsAllFramesNameD(
const wchar_t* path, double red, double green, double blue);

PluginOffsetNonZeroColorsName

このメソッドは、アニメーション内ですでに黒に設定されていない色のみを更新します。RGB オフセットを使って、フレーム内の一部の色をオフセットします。赤、緑、青のパラメーターには、-255 から 255 の範囲を使用します。負の値は色を減らし、正の値は色を加えます。

// DLL Interface
EXPORT_API void PluginOffsetNonZeroColorsName(
const wchar_t* path, int frameId, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::OffsetNonZeroColorsName(
const wchar_t* path, int frameId, int red, int green, int blue);

PluginOffsetNonZeroColorsNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOffsetNonZeroColorsNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::OffsetNonZeroColorsNameD(
const wchar_t* path, double frameId, double red, double green, double blue);

PluginOpenAnimation

再生できるように、Chroma アニメーションファイルを開きます。成功するとアニメーション ID(0 以上)を返します。失敗すると -1 を返します。アニメーション ID は、ほとんどの API メソッドで使用されます。

// DLL Interface
EXPORT_API int PluginOpenAnimation(const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::OpenAnimation(const wchar_t* path);

PluginOpenAnimationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOpenAnimationD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::OpenAnimationD(const wchar_t* path);

PluginOpenAnimationFromMemory

再生できるように、メモリから Chroma アニメーションデータを開きます。Data は、メモリ内に読み込まれたアニメーションの BYTE 配列へのポインターです。Name は、読み込み時にアニメーションに割り当てられます。成功するとアニメーション ID(0 以上)を返します。失敗すると -1 を返します。アニメーション ID は、ほとんどの API メソッドで使用されます。

// DLL Interface
EXPORT_API int PluginOpenAnimationFromMemory(
const BYTE* data, const wchar_t* name);

// Class Plugin
int result = ChromaAnimationAPI::OpenAnimationFromMemory(
const BYTE* data, const wchar_t* name);

PluginOpenEditorDialog

拡張子 .chroma の Chroma アニメーションファイルを開きます。成功すると 0 を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginOpenEditorDialog(const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::OpenEditorDialog(const wchar_t* path);

PluginOpenEditorDialogAndPlay

名前付きアニメーションをエディターダイアログで開き、アニメーションを最初から再生します。

// DLL Interface
EXPORT_API int PluginOpenEditorDialogAndPlay(const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::OpenEditorDialogAndPlay(const wchar_t* path);

PluginOpenEditorDialogAndPlayD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOpenEditorDialogAndPlayD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::OpenEditorDialogAndPlayD(const wchar_t* path);

PluginOpenEditorDialogD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOpenEditorDialogD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::OpenEditorDialogD(const wchar_t* path);

PluginOverrideFrameDuration

Chroma アニメーション内のすべてのフレームの duration を、duration パラメーターに設定します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginOverrideFrameDuration(
int animationId, float duration);

// Class Plugin
int result = ChromaAnimationAPI::OverrideFrameDuration(
int animationId, float duration);

PluginOverrideFrameDurationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginOverrideFrameDurationD(
double animationId, double duration);

// Class Plugin
double result = ChromaAnimationAPI::OverrideFrameDurationD(
double animationId, double duration);

PluginOverrideFrameDurationName

すべてのフレームの長さを duration の値で上書きします。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginOverrideFrameDurationName(
const wchar_t* path, float duration);

// Class Plugin
ChromaAnimationAPI::OverrideFrameDurationName(
const wchar_t* path, float duration);

PluginPauseAnimation

ID で参照した現在のアニメーションを一時停止します。

// DLL Interface
EXPORT_API void PluginPauseAnimation(int animationId);

// Class Plugin
ChromaAnimationAPI::PauseAnimation(int animationId);

PluginPauseAnimationName

名前で参照した現在のアニメーションを一時停止します。

// DLL Interface
EXPORT_API void PluginPauseAnimationName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::PauseAnimationName(const wchar_t* path);

PluginPauseAnimationNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginPauseAnimationNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::PauseAnimationNameD(const wchar_t* path);

PluginPlayAnimation

Chroma アニメーションを再生します。以前に読み込まれていない場合は、アニメーションを読み込みます。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginPlayAnimation(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::PlayAnimation(int animationId);

PluginPlayAnimationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginPlayAnimationD(double animationId);

// Class Plugin
double result = ChromaAnimationAPI::PlayAnimationD(double animationId);

PluginPlayAnimationFrame

PluginPlayAnimationFrame は、ChromaSDK の初期化を自動的に処理します。このメソッドは、animationId で指定したアニメーションを、ループを on または off にして、frameId から再生します。

// DLL Interface
EXPORT_API void PluginPlayAnimationFrame(
int animationId, int frameId, bool loop);

// Class Plugin
ChromaAnimationAPI::PlayAnimationFrame(
int animationId, int frameId, bool loop);

PluginPlayAnimationFrameName

PluginPlayAnimationFrameName は、ChromaSDK の初期化を自動的に処理します。名前付きの .chroma アニメーションファイルは自動的に開かれます。アニメーションは、ループを on または off にして、frameId から再生されます。

// DLL Interface
EXPORT_API void PluginPlayAnimationFrameName(
const wchar_t* path, int frameId, bool loop);

// Class Plugin
ChromaAnimationAPI::PlayAnimationFrameName(
const wchar_t* path, int frameId, bool loop);

PluginPlayAnimationFrameNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginPlayAnimationFrameNameD(
const wchar_t* path, double frameId, double loop);

// Class Plugin
double result = ChromaAnimationAPI::PlayAnimationFrameNameD(
const wchar_t* path, double frameId, double loop);

PluginPlayAnimationLoop

PluginPlayAnimationLoop は、ChromaSDK の初期化を自動的に処理します。このメソッドは、animationId で指定したアニメーションを、ループを on または off にして再生します。

// DLL Interface
EXPORT_API void PluginPlayAnimationLoop(
int animationId, bool loop);

// Class Plugin
ChromaAnimationAPI::PlayAnimationLoop(
int animationId, bool loop);

PluginPlayAnimationName

PluginPlayAnimationName は、ChromaSDK の初期化を自動的に処理します。名前付きの .chroma アニメーションファイルは自動的に開かれます。アニメーションは、ループを on または off にして再生されます。

// DLL Interface
EXPORT_API void PluginPlayAnimationName(
const wchar_t* path, bool loop);

// Class Plugin
ChromaAnimationAPI::PlayAnimationName(
const wchar_t* path, bool loop);

PluginPlayAnimationNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginPlayAnimationNameD(
const wchar_t* path, double loop);

// Class Plugin
double result = ChromaAnimationAPI::PlayAnimationNameD(
const wchar_t* path, double loop);

PluginPlayComposite

PluginPlayComposite は、ChromaSDK の初期化を自動的に処理します。.chroma セットの名前付きアニメーションファイルは自動的に開かれます。アニメーションのセットは、ループを on または off にして再生されます。

// DLL Interface
EXPORT_API void PluginPlayComposite(
const wchar_t* name, bool loop);

// Class Plugin
ChromaAnimationAPI::PlayComposite(
const wchar_t* name, bool loop);

PluginPlayCompositeD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginPlayCompositeD(
const wchar_t* name, double loop);

// Class Plugin
double result = ChromaAnimationAPI::PlayCompositeD(
const wchar_t* name, double loop);

PluginPreviewFrame

frameId で指定した Chroma アニメーションフレームを、Chroma ハードウェアに表示します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginPreviewFrame(
int animationId, int frameId);

// Class Plugin
int result = ChromaAnimationAPI::PreviewFrame(
int animationId, int frameId);

PluginPreviewFrameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginPreviewFrameD(
double animationId, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::PreviewFrameD(
double animationId, double frameId);

PluginPreviewFrameName

frameId で指定した Chroma アニメーションフレームを、Chroma ハードウェアに表示します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginPreviewFrameName(
const wchar_t* path, int frameId);

// Class Plugin
ChromaAnimationAPI::PreviewFrameName(
const wchar_t* path, int frameId);

PluginReduceFrames

n 番目の要素ごとに削除して、アニメーションのフレームを減らします。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginReduceFrames(
int animationId, int n);

// Class Plugin
ChromaAnimationAPI::ReduceFrames(
int animationId, int n);

PluginReduceFramesName

n 番目の要素ごとに削除して、アニメーションのフレームを減らします。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginReduceFramesName(
const wchar_t* path, int n);

// Class Plugin
ChromaAnimationAPI::ReduceFramesName(
const wchar_t* path, int n);

PluginReduceFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginReduceFramesNameD(
const wchar_t* path, double n);

// Class Plugin
double result = ChromaAnimationAPI::ReduceFramesNameD(
const wchar_t* path, double n);

PluginResetAnimation

Chroma アニメーションを、1 つの空のフレームにリセットします。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginResetAnimation(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::ResetAnimation(int animationId);

PluginResumeAnimation

ID で参照したアニメーションを、ループを ON または OFF にして再開します。

// DLL Interface
EXPORT_API void PluginResumeAnimation(
int animationId, bool loop);

// Class Plugin
ChromaAnimationAPI::ResumeAnimation(
int animationId, bool loop);

PluginResumeAnimationName

名前で参照したアニメーションを、ループを ON または OFF にして再開します。

// DLL Interface
EXPORT_API void PluginResumeAnimationName(
const wchar_t* path, bool loop);

// Class Plugin
ChromaAnimationAPI::ResumeAnimationName(
const wchar_t* path, bool loop);

PluginResumeAnimationNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginResumeAnimationNameD(
const wchar_t* path, double loop);

// Class Plugin
double result = ChromaAnimationAPI::ResumeAnimationNameD(
const wchar_t* path, double loop);

PluginReverse

Chroma アニメーションのフレームの順序を逆にします。成功するとアニメーション ID を返します。失敗すると -1 を返します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API int PluginReverse(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::Reverse(int animationId);

PluginReverseAllFrames

Chroma アニメーションのフレームの順序を逆にします。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginReverseAllFrames(int animationId);

// Class Plugin
ChromaAnimationAPI::ReverseAllFrames(int animationId);

PluginReverseAllFramesName

Chroma アニメーションのフレームの順序を逆にします。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginReverseAllFramesName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::ReverseAllFramesName(const wchar_t* path);

PluginReverseAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginReverseAllFramesNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::ReverseAllFramesNameD(const wchar_t* path);

PluginSaveAnimation

ID で参照したアニメーションを、指定したパスに保存します。

// DLL Interface
EXPORT_API int PluginSaveAnimation(
int animationId, const wchar_t* path);

// Class Plugin
int result = ChromaAnimationAPI::SaveAnimation(
int animationId, const wchar_t* path);

PluginSaveAnimationName

名前付きアニメーションを、指定したターゲットパスに保存します。

// DLL Interface
EXPORT_API int PluginSaveAnimationName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
int result = ChromaAnimationAPI::SaveAnimationName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginSet1DColor

1D の led を指定して、フレームのアニメーションカラーを設定します。led は 0 以上で、MaxLeds 未満にする必要があります。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSet1DColor(
int animationId, int frameId, int led, int color);

// Class Plugin
ChromaAnimationAPI::Set1DColor(
int animationId, int frameId, int led, int color);

PluginSet1DColorName

1D の led を指定して、フレームのアニメーションカラーを設定します。led は 0 以上で、MaxLeds 未満にする必要があります。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSet1DColorName(
const wchar_t* path, int frameId, int led, int color);

// Class Plugin
ChromaAnimationAPI::Set1DColorName(
const wchar_t* path, int frameId, int led, int color);

PluginSet1DColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSet1DColorNameD(
const wchar_t* path, double frameId, double led, double color);

// Class Plugin
double result = ChromaAnimationAPI::Set1DColorNameD(
const wchar_t* path, double frameId, double led, double color);

PluginSet2DColor

2D の row と column を指定して、フレームのアニメーションカラーを設定します。row は 0 以上で、MaxRow 未満にする必要があります。column は 0 以上で、MaxColumn 未満にする必要があります。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSet2DColor(
int animationId, int frameId, int row, int column, int color);

// Class Plugin
ChromaAnimationAPI::Set2DColor(
int animationId, int frameId, int row, int column, int color);

PluginSet2DColorName

2D の row と column を指定して、フレームのアニメーションカラーを設定します。row は 0 以上で、MaxRow 未満にする必要があります。column は 0 以上で、MaxColumn 未満にする必要があります。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSet2DColorName(
const wchar_t* path, int frameId, int row, int column, int color);

// Class Plugin
ChromaAnimationAPI::Set2DColorName(
const wchar_t* path, int frameId, int row, int column, int color);

PluginSet2DColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSet2DColorNameD(
const wchar_t* path, double frameId, double rowColumnIndex, double color);

// Class Plugin
double result = ChromaAnimationAPI::Set2DColorNameD(
const wchar_t* path, double frameId, double rowColumnIndex, double color);

PluginSetChromaCustomColorAllFrames

カスタムカラーが設定されている場合、カスタムキーモードが使用されます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetChromaCustomColorAllFrames(int animationId);

// Class Plugin
ChromaAnimationAPI::SetChromaCustomColorAllFrames(int animationId);

PluginSetChromaCustomColorAllFramesName

カスタムカラーが設定されている場合、カスタムキーモードが使用されます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetChromaCustomColorAllFramesName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::SetChromaCustomColorAllFramesName(const wchar_t* path);

PluginSetChromaCustomColorAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetChromaCustomColorAllFramesNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::SetChromaCustomColorAllFramesNameD(const wchar_t* path);

PluginSetChromaCustomFlag

すべてのフレームに、Chroma のカスタムキーカラーフラグを設定します。True はレイアウトをグリッドからキーに変更します。True はレイアウトをキーからグリッドに変更します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetChromaCustomFlag(
int animationId, bool flag);

// Class Plugin
ChromaAnimationAPI::SetChromaCustomFlag(
int animationId, bool flag);

PluginSetChromaCustomFlagName

すべてのフレームに、Chroma のカスタムキーカラーフラグを設定します。True はレイアウトをグリッドからキーに変更します。True はレイアウトをキーからグリッドに変更します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetChromaCustomFlagName(
const wchar_t* path, bool flag);

// Class Plugin
ChromaAnimationAPI::SetChromaCustomFlagName(
const wchar_t* path, bool flag);

PluginSetChromaCustomFlagNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetChromaCustomFlagNameD(
const wchar_t* path, double flag);

// Class Plugin
double result = ChromaAnimationAPI::SetChromaCustomFlagNameD(
const wchar_t* path, double flag);

PluginSetCurrentFrame

ID で参照したアニメーションの現在のフレームを設定します。

// DLL Interface
EXPORT_API void PluginSetCurrentFrame(
int animationId, int frameId);

// Class Plugin
ChromaAnimationAPI::SetCurrentFrame(
int animationId, int frameId);

PluginSetCurrentFrameName

名前で参照したアニメーションの現在のフレームを設定します。

// DLL Interface
EXPORT_API void PluginSetCurrentFrameName(
const wchar_t* path, int frameId);

// Class Plugin
ChromaAnimationAPI::SetCurrentFrameName(
const wchar_t* path, int frameId);

PluginSetCurrentFrameNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetCurrentFrameNameD(
const wchar_t* path, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::SetCurrentFrameNameD(
const wchar_t* path, double frameId);

PluginSetCustomColorFlag2D

カラー配列にカスタムアルファフラグを設定します

// DLL Interface
EXPORT_API RZRESULT PluginSetCustomColorFlag2D(
int device, int* colors);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::SetCustomColorFlag2D(
int device, int* colors);

PluginSetDevice

Chroma アニメーションの deviceType と device を変更します。デバイスを変更すると、Chroma アニメーションは 1 つの空のフレームにリセットされます。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginSetDevice(
int animationId, int deviceType, int device);

// Class Plugin
int result = ChromaAnimationAPI::SetDevice(
int animationId, int deviceType, int device);

PluginSetEffect

SetEffect は、参照したエフェクト ID を表示します。

// DLL Interface
EXPORT_API RZRESULT PluginSetEffect(
const ChromaSDK::FChromaSDKGuid& effectId);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::SetEffect(
const ChromaSDK::FChromaSDKGuid& effectId);

PluginSetEffectCustom1D

SetEffectCustom1D は、参照した色をすぐに表示します

// DLL Interface
EXPORT_API RZRESULT PluginSetEffectCustom1D(
const int device, const int* colors);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::SetEffectCustom1D(
const int device, const int* colors);

PluginSetEffectCustom2D

SetEffectCustom2D は、参照した色をすぐに表示します。

// DLL Interface
EXPORT_API RZRESULT PluginSetEffectCustom2D(
const int device, const int* colors);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::SetEffectCustom2D(
const int device, const int* colors);

PluginSetEffectKeyboardCustom2D

SetEffectKeyboardCustom2D は、参照したカスタムキーボードの色をすぐに表示します。色は視覚的なグリッドレイアウトを表します。キーは、あらゆるレイアウトのホットキーを表します。

// DLL Interface
EXPORT_API RZRESULT PluginSetEffectKeyboardCustom2D(
const int device, const int* colors, const int* keys);

// Class Plugin
RZRESULT result = ChromaAnimationAPI::SetEffectKeyboardCustom2D(
const int device, const int* colors, const int* keys);

PluginSetIdleAnimation

アイドルアニメーションを使用すると、他のアニメーションが再生されていないときに、名前付きアニメーションが再生されます。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetIdleAnimation(int animationId);

// Class Plugin
ChromaAnimationAPI::SetIdleAnimation(int animationId);

PluginSetIdleAnimationName

アイドルアニメーションを使用すると、他のアニメーションが再生されていないときに、名前付きアニメーションが再生されます。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetIdleAnimationName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::SetIdleAnimationName(const wchar_t* path);

PluginSetKeyColor

指定したフレームについて、アニメーションのキーを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetKeyColor(
int animationId, int frameId, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyColor(
int animationId, int frameId, int rzkey, int color);

PluginSetKeyColorAllFrames

すべてのフレームについて、キーを指定したキーカラーに設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyColorAllFrames(
int animationId, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyColorAllFrames(
int animationId, int rzkey, int color);

PluginSetKeyColorAllFramesName

すべてのフレームについて、キーを指定したキーカラーに設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyColorAllFramesName(
const wchar_t* path, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyColorAllFramesName(
const wchar_t* path, int rzkey, int color);

PluginSetKeyColorAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyColorAllFramesNameD(
const wchar_t* path, double rzkey, double color);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyColorAllFramesNameD(
const wchar_t* path, double rzkey, double color);

PluginSetKeyColorAllFramesRGB

すべてのフレームについて、キーを指定したキーカラーに設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyColorAllFramesRGB(
int animationId, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyColorAllFramesRGB(
int animationId, int rzkey, int red, int green, int blue);

PluginSetKeyColorAllFramesRGBName

すべてのフレームについて、キーを指定したキーカラーに設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyColorAllFramesRGBName(
const wchar_t* path, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyColorAllFramesRGBName(
const wchar_t* path, int rzkey, int red, int green, int blue);

PluginSetKeyColorAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyColorAllFramesRGBNameD(
const wchar_t* path, double rzkey, double red, double green, double blue);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyColorAllFramesRGBNameD(
const wchar_t* path, double rzkey, double red, double green, double blue);

PluginSetKeyColorName

指定したフレームについて、アニメーションのキーを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetKeyColorName(
const wchar_t* path, int frameId, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyColorName(
const wchar_t* path, int frameId, int rzkey, int color);

PluginSetKeyColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyColorNameD(
const wchar_t* path, double frameId, double rzkey, double color);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyColorNameD(
const wchar_t* path, double frameId, double rzkey, double color);

PluginSetKeyColorRGB

指定したフレームについて、キーを指定したキーカラーに設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyColorRGB(
int animationId, int frameId, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyColorRGB(
int animationId, int frameId, int rzkey, int red, int green, int blue);

PluginSetKeyColorRGBName

指定したフレームについて、キーを指定したキーカラーに設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyColorRGBName(
const wchar_t* path, int frameId, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyColorRGBName(
const wchar_t* path, int frameId, int rzkey, int red, int green, int blue);

PluginSetKeyColorRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyColorRGBNameD(
const wchar_t* path, double frameId, double rzkey, double red, double green,
double blue);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyColorRGBNameD(
const wchar_t* path, double frameId, double rzkey, double red, double green,
double blue);

PluginSetKeyNonZeroColor

指定したフレームについて、既存の色がすでに黒でない場合に、アニメーションのキーを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetKeyNonZeroColor(
int animationId, int frameId, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyNonZeroColor(
int animationId, int frameId, int rzkey, int color);

PluginSetKeyNonZeroColorName

指定したフレームについて、既存の色がすでに黒でない場合に、アニメーションのキーを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetKeyNonZeroColorName(
const wchar_t* path, int frameId, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyNonZeroColorName(
const wchar_t* path, int frameId, int rzkey, int color);

PluginSetKeyNonZeroColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyNonZeroColorNameD(
const wchar_t* path, double frameId, double rzkey, double color);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyNonZeroColorNameD(
const wchar_t* path, double frameId, double rzkey, double color);

PluginSetKeyNonZeroColorRGB

指定したフレームについて、色が黒でない箇所のキーを、指定したキーカラーに設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyNonZeroColorRGB(
int animationId, int frameId, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyNonZeroColorRGB(
int animationId, int frameId, int rzkey, int red, int green, int blue);

PluginSetKeyNonZeroColorRGBName

指定したフレームについて、色が黒でない箇所のキーを、指定したキーカラーに設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyNonZeroColorRGBName(
const wchar_t* path, int frameId, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyNonZeroColorRGBName(
const wchar_t* path, int frameId, int rzkey, int red, int green, int blue);

PluginSetKeyNonZeroColorRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyNonZeroColorRGBNameD(
const wchar_t* path, double frameId, double rzkey, double red, double green,
double blue);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyNonZeroColorRGBNameD(
const wchar_t* path, double frameId, double rzkey, double red, double green,
double blue);

PluginSetKeyRowColumnColorName

指定したフレームについて、行と列でアニメーションのキーを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetKeyRowColumnColorName(
const wchar_t* path, int frameId, int row, int column, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyRowColumnColorName(
const wchar_t* path, int frameId, int row, int column, int color);

PluginSetKeysColor

指定したフレームについて、アニメーションのキーの配列を静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysColor(
int animationId, int frameId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysColor(
int animationId, int frameId, const int* rzkeys, int keyCount, int color);

PluginSetKeysColorAllFrames

すべてのフレームについて、アニメーションのキーの配列を静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysColorAllFrames(
int animationId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysColorAllFrames(
int animationId, const int* rzkeys, int keyCount, int color);

PluginSetKeysColorAllFramesName

すべてのフレームについて、アニメーションのキーの配列を静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysColorAllFramesName(
const wchar_t* path, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysColorAllFramesName(
const wchar_t* path, const int* rzkeys, int keyCount, int color);

PluginSetKeysColorAllFramesRGB

すべてのフレームについて、アニメーションのキーの配列を静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysColorAllFramesRGB(
int animationId, const int* rzkeys, int keyCount, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysColorAllFramesRGB(
int animationId, const int* rzkeys, int keyCount, int red, int green, int blue);

PluginSetKeysColorAllFramesRGBName

すべてのフレームについて、アニメーションのキーの配列を静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysColorAllFramesRGBName(
const wchar_t* path, const int* rzkeys, int keyCount, int red, int green,
int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysColorAllFramesRGBName(
const wchar_t* path, const int* rzkeys, int keyCount, int red, int green,
int blue);

PluginSetKeysColorName

指定したフレームについて、アニメーションのキーの配列を静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetKeysColorName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysColorName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int color);

PluginSetKeysColorRGB

指定したフレームについて、アニメーションのキーの配列を静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysColorRGB(
int animationId, int frameId, const int* rzkeys, int keyCount, int red, int green,
int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysColorRGB(
int animationId, int frameId, const int* rzkeys, int keyCount, int red, int green,
int blue);

PluginSetKeysColorRGBName

指定したフレームについて、アニメーションのキーの配列を静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysColorRGBName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int red,
int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysColorRGBName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int red,
int green, int blue);

PluginSetKeysNonZeroColor

指定したフレームについて、既存の色がすでに黒でない場合に、アニメーションのキーの配列を静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetKeysNonZeroColor(
int animationId, int frameId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysNonZeroColor(
int animationId, int frameId, const int* rzkeys, int keyCount, int color);

PluginSetKeysNonZeroColorAllFrames

指定したフレームについて、色が黒でない箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysNonZeroColorAllFrames(
int animationId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysNonZeroColorAllFrames(
int animationId, const int* rzkeys, int keyCount, int color);

PluginSetKeysNonZeroColorAllFramesName

すべてのフレームについて、既存の色がすでに黒でない場合に、アニメーションのキーの配列を静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysNonZeroColorAllFramesName(
const wchar_t* path, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysNonZeroColorAllFramesName(
const wchar_t* path, const int* rzkeys, int keyCount, int color);

PluginSetKeysNonZeroColorName

指定したフレームについて、既存の色がすでに黒でない場合に、アニメーションのキーの配列を静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysNonZeroColorName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysNonZeroColorName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int color);

PluginSetKeysNonZeroColorRGB

指定したフレームについて、色が黒でない箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysNonZeroColorRGB(
int animationId, int frameId, const int* rzkeys, int keyCount, int red, int green,
int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysNonZeroColorRGB(
int animationId, int frameId, const int* rzkeys, int keyCount, int red, int green,
int blue);

PluginSetKeysNonZeroColorRGBName

指定したフレームについて、色が黒でない箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysNonZeroColorRGBName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int red,
int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysNonZeroColorRGBName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int red,
int green, int blue);

PluginSetKeysZeroColor

指定したフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColor(
int animationId, int frameId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColor(
int animationId, int frameId, const int* rzkeys, int keyCount, int color);

PluginSetKeysZeroColorAllFrames

すべてのフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColorAllFrames(
int animationId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColorAllFrames(
int animationId, const int* rzkeys, int keyCount, int color);

PluginSetKeysZeroColorAllFramesName

すべてのフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColorAllFramesName(
const wchar_t* path, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColorAllFramesName(
const wchar_t* path, const int* rzkeys, int keyCount, int color);

PluginSetKeysZeroColorAllFramesRGB

すべてのフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColorAllFramesRGB(
int animationId, const int* rzkeys, int keyCount, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColorAllFramesRGB(
int animationId, const int* rzkeys, int keyCount, int red, int green, int blue);

PluginSetKeysZeroColorAllFramesRGBName

すべてのフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColorAllFramesRGBName(
const wchar_t* path, const int* rzkeys, int keyCount, int red, int green,
int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColorAllFramesRGBName(
const wchar_t* path, const int* rzkeys, int keyCount, int red, int green,
int blue);

PluginSetKeysZeroColorName

指定したフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColorName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int color);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColorName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int color);

PluginSetKeysZeroColorRGB

指定したフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColorRGB(
int animationId, int frameId, const int* rzkeys, int keyCount, int red, int green,
int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColorRGB(
int animationId, int frameId, const int* rzkeys, int keyCount, int red, int green,
int blue);

PluginSetKeysZeroColorRGBName

指定したフレームについて、色が黒の箇所のアニメーションのキーの配列を、静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeysZeroColorRGBName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int red,
int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeysZeroColorRGBName(
const wchar_t* path, int frameId, const int* rzkeys, int keyCount, int red,
int green, int blue);

PluginSetKeyZeroColor

指定したフレームについて、色が黒の箇所のアニメーションのキーを、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyZeroColor(
int animationId, int frameId, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyZeroColor(
int animationId, int frameId, int rzkey, int color);

PluginSetKeyZeroColorName

指定したフレームについて、色が黒の箇所のアニメーションのキーを、静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyZeroColorName(
const wchar_t* path, int frameId, int rzkey, int color);

// Class Plugin
ChromaAnimationAPI::SetKeyZeroColorName(
const wchar_t* path, int frameId, int rzkey, int color);

PluginSetKeyZeroColorNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyZeroColorNameD(
const wchar_t* path, double frameId, double rzkey, double color);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyZeroColorNameD(
const wchar_t* path, double frameId, double rzkey, double color);

PluginSetKeyZeroColorRGB

指定したフレームについて、色が黒の箇所のアニメーションのキーを、静的な色に設定します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyZeroColorRGB(
int animationId, int frameId, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyZeroColorRGB(
int animationId, int frameId, int rzkey, int red, int green, int blue);

PluginSetKeyZeroColorRGBName

指定したフレームについて、色が黒の箇所のアニメーションのキーを、静的な色に設定します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSetKeyZeroColorRGBName(
const wchar_t* path, int frameId, int rzkey, int red, int green, int blue);

// Class Plugin
ChromaAnimationAPI::SetKeyZeroColorRGBName(
const wchar_t* path, int frameId, int rzkey, int red, int green, int blue);

PluginSetKeyZeroColorRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSetKeyZeroColorRGBNameD(
const wchar_t* path, double frameId, double rzkey, double red, double green,
double blue);

// Class Plugin
double result = ChromaAnimationAPI::SetKeyZeroColorRGBNameD(
const wchar_t* path, double frameId, double rzkey, double red, double green,
double blue);

PluginSetLogDelegate

stdout がコールバックにリダイレクトされるよう、デバッグログのコールバックのセットアップを呼び出します。Unity が、デバッグメッセージをコンソールウィンドウに表示するために使用します。

// DLL Interface
EXPORT_API void PluginSetLogDelegate(DebugLogPtr fp);

// Class Plugin
ChromaAnimationAPI::SetLogDelegate(DebugLogPtr fp);

PluginSetStaticColor

ターゲットデバイスを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetStaticColor(
int deviceType, int device, int color);

// Class Plugin
ChromaAnimationAPI::SetStaticColor(
int deviceType, int device, int color);

PluginSetStaticColorAll

すべてのデバイスを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginSetStaticColorAll(int color);

// Class Plugin
ChromaAnimationAPI::SetStaticColorAll(int color);

PluginStaticColor

ターゲットデバイスを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginStaticColor(
int deviceType, int device, int color);

// Class Plugin
ChromaAnimationAPI::StaticColor(
int deviceType, int device, int color);

PluginStaticColorAll

すべてのデバイスを静的な色に設定します。

// DLL Interface
EXPORT_API void PluginStaticColorAll(int color);

// Class Plugin
ChromaAnimationAPI::StaticColorAll(int color);

PluginStaticColorD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginStaticColorD(
double deviceType, double device, double color);

// Class Plugin
double result = ChromaAnimationAPI::StaticColorD(
double deviceType, double device, double color);

PluginStopAll

PluginStopAll は、再生中のすべてのアニメーションを自動的に停止します。

// DLL Interface
EXPORT_API void PluginStopAll();

// Class Plugin
ChromaAnimationAPI::StopAll();

PluginStopAnimation

再生中の場合は、アニメーションの再生を停止します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginStopAnimation(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::StopAnimation(int animationId);

PluginStopAnimationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginStopAnimationD(double animationId);

// Class Plugin
double result = ChromaAnimationAPI::StopAnimationD(double animationId);

PluginStopAnimationName

PluginStopAnimationName は、ChromaSDK の初期化を自動的に処理します。名前付きの .chroma アニメーションファイルは自動的に開かれます。アニメーションは、再生中であれば停止されます。

// DLL Interface
EXPORT_API void PluginStopAnimationName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::StopAnimationName(const wchar_t* path);

PluginStopAnimationNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginStopAnimationNameD(const wchar_t* path);

// Class Plugin
double result = ChromaAnimationAPI::StopAnimationNameD(const wchar_t* path);

PluginStopAnimationType

PluginStopAnimationType は、ChromaSDK の初期化を自動的に処理します。deviceType と device の組み合わせで再生中のアニメーションがある場合、それらは停止されます。

// DLL Interface
EXPORT_API void PluginStopAnimationType(
int deviceType, int device);

// Class Plugin
ChromaAnimationAPI::StopAnimationType(
int deviceType, int device);

PluginStopAnimationTypeD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginStopAnimationTypeD(
double deviceType, double device);

// Class Plugin
double result = ChromaAnimationAPI::StopAnimationTypeD(
double deviceType, double device);

PluginStopComposite

PluginStopComposite は、ChromaSDK の初期化を自動的に処理します。.chroma セットの名前付きアニメーションファイルは自動的に開かれます。アニメーションのセットは、再生中であれば停止されます。

// DLL Interface
EXPORT_API void PluginStopComposite(const wchar_t* name);

// Class Plugin
ChromaAnimationAPI::StopComposite(const wchar_t* name);

PluginStopCompositeD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginStopCompositeD(const wchar_t* name);

// Class Plugin
double result = ChromaAnimationAPI::StopCompositeD(const wchar_t* name);

PluginSubtractColor

color1 - color2 を返します

// DLL Interface
EXPORT_API int PluginSubtractColor(
const int color1, const int color2);

// Class Plugin
int result = ChromaAnimationAPI::SubtractColor(
const int color1, const int color2);

PluginSubtractNonZeroAllKeys

フレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeys(
int sourceAnimationId, int targetAnimationId, int frameId);

PluginSubtractNonZeroAllKeysAllFrames

すべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginSubtractNonZeroAllKeysAllFramesName

すべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginSubtractNonZeroAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractNonZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::SubtractNonZeroAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginSubtractNonZeroAllKeysAllFramesOffset

ソースの長さ分、オフセットから始まるすべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

PluginSubtractNonZeroAllKeysAllFramesOffsetName

ソースの長さ分、オフセットから始まるすべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

PluginSubtractNonZeroAllKeysAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractNonZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

// Class Plugin
double result = ChromaAnimationAPI::SubtractNonZeroAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

PluginSubtractNonZeroAllKeysName

フレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeysName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId);

PluginSubtractNonZeroAllKeysOffset

ソースフレームとターゲットオフセットフレームについて、色が黒でない箇所で、ターゲットからソースの色を減算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

PluginSubtractNonZeroAllKeysOffsetName

ソースフレームとターゲットオフセットフレームについて、色が黒でない箇所で、ターゲットからソースの色を減算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

PluginSubtractNonZeroAllKeysOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractNonZeroAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

// Class Plugin
double result = ChromaAnimationAPI::SubtractNonZeroAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

PluginSubtractNonZeroTargetAllKeysAllFrames

すべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroTargetAllKeysAllFrames(
int sourceAnimationId, int targetAnimationId);

PluginSubtractNonZeroTargetAllKeysAllFramesName

すべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroTargetAllKeysAllFramesName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginSubtractNonZeroTargetAllKeysAllFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractNonZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

// Class Plugin
double result = ChromaAnimationAPI::SubtractNonZeroTargetAllKeysAllFramesNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation);

PluginSubtractNonZeroTargetAllKeysAllFramesOffset

ソースの長さ分、ターゲットオフセットから始まるすべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroTargetAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroTargetAllKeysAllFramesOffset(
int sourceAnimationId, int targetAnimationId, int offset);

PluginSubtractNonZeroTargetAllKeysAllFramesOffsetName

ソースの長さ分、ターゲットオフセットから始まるすべてのフレームについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroTargetAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroTargetAllKeysAllFramesOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int offset);

PluginSubtractNonZeroTargetAllKeysAllFramesOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractNonZeroTargetAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

// Class Plugin
double result = ChromaAnimationAPI::SubtractNonZeroTargetAllKeysAllFramesOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double offset);

PluginSubtractNonZeroTargetAllKeysOffset

ソースフレームからターゲットオフセットフレームまでについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroTargetAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroTargetAllKeysOffset(
int sourceAnimationId, int targetAnimationId, int frameId, int offset);

PluginSubtractNonZeroTargetAllKeysOffsetName

ソースフレームからターゲットオフセットフレームまでについて、ターゲットの色が黒でない箇所で、ターゲットの色からソースの色を減算します。ソースとターゲットは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractNonZeroTargetAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

// Class Plugin
ChromaAnimationAPI::SubtractNonZeroTargetAllKeysOffsetName(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, int frameId,
int offset);

PluginSubtractNonZeroTargetAllKeysOffsetNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractNonZeroTargetAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

// Class Plugin
double result = ChromaAnimationAPI::SubtractNonZeroTargetAllKeysOffsetNameD(
const wchar_t* sourceAnimation, const wchar_t* targetAnimation, double frameId,
double offset);

PluginSubtractThresholdColorsMinMaxAllFramesRGB

アニメーションの色が最小しきい値より小さい箇所は最小の RGB カラーを、最大しきい値より大きい箇所は最大の RGB カラーを、すべてのフレームから減算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractThresholdColorsMinMaxAllFramesRGB(
const int animationId, const int minThreshold, const int minRed, const int minGreen,
const int minBlue, const int maxThreshold, const int maxRed, const int maxGreen,
const int maxBlue);

// Class Plugin
ChromaAnimationAPI::SubtractThresholdColorsMinMaxAllFramesRGB(
const int animationId, const int minThreshold, const int minRed, const int minGreen,
const int minBlue, const int maxThreshold, const int maxRed, const int maxGreen,
const int maxBlue);

PluginSubtractThresholdColorsMinMaxAllFramesRGBName

アニメーションの色が最小しきい値より小さい箇所は最小の RGB カラーを、最大しきい値より大きい箇所は最大の RGB カラーを、すべてのフレームから減算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractThresholdColorsMinMaxAllFramesRGBName(
const wchar_t* path, const int minThreshold, const int minRed, const int minGreen,
const int minBlue, const int maxThreshold, const int maxRed, const int maxGreen,
const int maxBlue);

// Class Plugin
ChromaAnimationAPI::SubtractThresholdColorsMinMaxAllFramesRGBName(
const wchar_t* path, const int minThreshold, const int minRed, const int minGreen,
const int minBlue, const int maxThreshold, const int maxRed, const int maxGreen,
const int maxBlue);

PluginSubtractThresholdColorsMinMaxAllFramesRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractThresholdColorsMinMaxAllFramesRGBNameD(
const wchar_t* path, double minThreshold, double minRed, double minGreen,
double minBlue, double maxThreshold, double maxRed, double maxGreen, double maxBlue);

// Class Plugin
double result = ChromaAnimationAPI::SubtractThresholdColorsMinMaxAllFramesRGBNameD(
const wchar_t* path, double minThreshold, double minRed, double minGreen,
double minBlue, double maxThreshold, double maxRed, double maxGreen, double maxBlue);

PluginSubtractThresholdColorsMinMaxRGB

アニメーションの色が最小しきい値より小さい箇所は最小の RGB カラーを、最大しきい値より大きい箇所は最大の RGB カラーを、指定したフレームから減算します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginSubtractThresholdColorsMinMaxRGB(
const int animationId, const int frameId, const int minThreshold, const int minRed,
const int minGreen, const int minBlue, const int maxThreshold, const int maxRed,
const int maxGreen, const int maxBlue);

// Class Plugin
ChromaAnimationAPI::SubtractThresholdColorsMinMaxRGB(
const int animationId, const int frameId, const int minThreshold, const int minRed,
const int minGreen, const int minBlue, const int maxThreshold, const int maxRed,
const int maxGreen, const int maxBlue);

PluginSubtractThresholdColorsMinMaxRGBName

アニメーションの色が最小しきい値より小さい箇所は最小の RGB カラーを、最大しきい値より大きい箇所は最大の RGB カラーを、指定したフレームから減算します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginSubtractThresholdColorsMinMaxRGBName(
const wchar_t* path, const int frameId, const int minThreshold, const int minRed,
const int minGreen, const int minBlue, const int maxThreshold, const int maxRed,
const int maxGreen, const int maxBlue);

// Class Plugin
ChromaAnimationAPI::SubtractThresholdColorsMinMaxRGBName(
const wchar_t* path, const int frameId, const int minThreshold, const int minRed,
const int minGreen, const int minBlue, const int maxThreshold, const int maxRed,
const int maxGreen, const int maxBlue);

PluginSubtractThresholdColorsMinMaxRGBNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginSubtractThresholdColorsMinMaxRGBNameD(
const wchar_t* path, const int frameId, const int minThreshold, const int minRed,
const int minGreen, const int minBlue, const int maxThreshold, const int maxRed,
const int maxGreen, const int maxBlue);

// Class Plugin
double result = ChromaAnimationAPI::SubtractThresholdColorsMinMaxRGBNameD(
const wchar_t* path, const int frameId, const int minThreshold, const int minRed,
const int minGreen, const int minBlue, const int maxThreshold, const int maxRed,
const int maxGreen, const int maxBlue);

PluginTrimEndFrames

アニメーションの末尾をトリミングします。アニメーションの長さは lastFrameId + 1 になります。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginTrimEndFrames(
int animationId, int lastFrameId);

// Class Plugin
ChromaAnimationAPI::TrimEndFrames(
int animationId, int lastFrameId);

PluginTrimEndFramesName

アニメーションの末尾をトリミングします。アニメーションの長さは lastFrameId + 1 になります。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginTrimEndFramesName(
const wchar_t* path, int lastFrameId);

// Class Plugin
ChromaAnimationAPI::TrimEndFramesName(
const wchar_t* path, int lastFrameId);

PluginTrimEndFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginTrimEndFramesNameD(
const wchar_t* path, double lastFrameId);

// Class Plugin
double result = ChromaAnimationAPI::TrimEndFramesNameD(
const wchar_t* path, double lastFrameId);

PluginTrimFrame

アニメーションからフレームを削除します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginTrimFrame(
int animationId, int frameId);

// Class Plugin
ChromaAnimationAPI::TrimFrame(
int animationId, int frameId);

PluginTrimFrameName

アニメーションからフレームを削除します。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginTrimFrameName(
const wchar_t* path, int frameId);

// Class Plugin
ChromaAnimationAPI::TrimFrameName(
const wchar_t* path, int frameId);

PluginTrimFrameNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginTrimFrameNameD(
const wchar_t* path, double frameId);

// Class Plugin
double result = ChromaAnimationAPI::TrimFrameNameD(
const wchar_t* path, double frameId);

PluginTrimStartFrames

フレーム 0 から指定したフレーム数分、アニメーションの先頭をトリミングします。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginTrimStartFrames(
int animationId, int numberOfFrames);

// Class Plugin
ChromaAnimationAPI::TrimStartFrames(
int animationId, int numberOfFrames);

PluginTrimStartFramesName

フレーム 0 から指定したフレーム数分、アニメーションの先頭をトリミングします。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginTrimStartFramesName(
const wchar_t* path, int numberOfFrames);

// Class Plugin
ChromaAnimationAPI::TrimStartFramesName(
const wchar_t* path, int numberOfFrames);

PluginTrimStartFramesNameD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginTrimStartFramesNameD(
const wchar_t* path, double numberOfFrames);

// Class Plugin
double result = ChromaAnimationAPI::TrimStartFramesNameD(
const wchar_t* path, double numberOfFrames);

PluginUninit

ChromaSDK を初期化解除します。成功すると 0 を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API RZRESULT PluginUninit();

// Class Plugin
RZRESULT result = ChromaAnimationAPI::Uninit();

PluginUninitD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginUninitD();

// Class Plugin
double result = ChromaAnimationAPI::UninitD();

PluginUnloadAnimation

リソースを解放するために、Chroma エフェクトをアンロードします。成功するとアニメーション ID を返します。失敗すると -1 を返します。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API int PluginUnloadAnimation(int animationId);

// Class Plugin
int result = ChromaAnimationAPI::UnloadAnimation(int animationId);

PluginUnloadAnimationD

D サフィックスは、限定されたデータ型向けです。

// DLL Interface
EXPORT_API double PluginUnloadAnimationD(double animationId);

// Class Plugin
double result = ChromaAnimationAPI::UnloadAnimationD(double animationId);

PluginUnloadAnimationName

アニメーションのエフェクトをアンロードします。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginUnloadAnimationName(const wchar_t* path);

// Class Plugin
ChromaAnimationAPI::UnloadAnimationName(const wchar_t* path);

PluginUnloadComposite

アニメーションエフェクトの複合セットをアンロードします。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginUnloadComposite(const wchar_t* name);

// Class Plugin
ChromaAnimationAPI::UnloadComposite(const wchar_t* name);

PluginUnloadLibrarySDK

アプリケーションを終了する前に、Razer Chroma SDK ライブラリをアンロードします。

// DLL Interface
EXPORT_API void PluginUnloadLibrarySDK();

// Class Plugin
ChromaAnimationAPI::UnloadLibrarySDK();

PluginUnloadLibraryStreamingPlugin

アプリケーションを終了する前に、Razer Chroma Streaming Plugin ライブラリをアンロードします。

// DLL Interface
EXPORT_API void PluginUnloadLibraryStreamingPlugin();

// Class Plugin
ChromaAnimationAPI::UnloadLibraryStreamingPlugin();

PluginUpdateFrame

ID で参照した Chroma アニメーションの frameId を更新し、duration(秒)を設定します。color は、deviceType/device のサイズに合った配列である必要があります。length パラメーターは、color 配列のサイズです。EChromaSDKDevice1DEnum の場合、配列のサイズは MAX LEDS にします。EChromaSDKDevice2DEnum の場合、配列のサイズは MAX ROW × MAX COLUMN にします。キーが設定されるのは、EChromaSDKDevice2DEnum::DE_Keyboard と EChromaSDKDevice2DEnum::DE_KeyboardExtended の場合のみです。キーは、EChromaSDKDevice2DEnum::DE_Keyboard の MAX_ROW × MAX_COLUMN の keysLength のみを使用します。

// DLL Interface
EXPORT_API int PluginUpdateFrame(
int animationId, int frameId, float duration, int* colors, int length, int* keys,
int keysLength);

// Class Plugin
int result = ChromaAnimationAPI::UpdateFrame(
int animationId, int frameId, float duration, int* colors, int length, int* keys,
int keysLength);

PluginUpdateFrameName

名前で参照した Chroma アニメーションの frameId を更新し、duration(秒)を設定します。color は、deviceType/device のサイズに合った配列である必要があります。length パラメーターは、color 配列のサイズです。EChromaSDKDevice1DEnum の場合、配列のサイズは MAX LEDS にします。EChromaSDKDevice2DEnum の場合、配列のサイズは MAX ROW × MAX COLUMN にします。キーが設定されるのは、EChromaSDKDevice2DEnum::DE_Keyboard と EChromaSDKDevice2DEnum::DE_KeyboardExtended の場合のみです。キーは、EChromaSDKDevice2DEnum::DE_Keyboard の MAX_ROW × MAX_COLUMN の keysLength のみを使用します。成功するとアニメーション ID を返します。失敗すると -1 を返します。

// DLL Interface
EXPORT_API int PluginUpdateFrameName(
const wchar_t* path, int frameId, float duration, int* colors, int length,
int* keys, int keysLength);

// Class Plugin
int result = ChromaAnimationAPI::UpdateFrameName(
const wchar_t* path, int frameId, float duration, int* colors, int length,
int* keys, int keysLength);

PluginUseForwardChromaEvents

既定でオンの UseForwardChromaEvents は、PlayAnimationName が呼び出されると、アニメーション名を CoreSetEventName に自動的に送信します。

// DLL Interface
EXPORT_API void PluginUseForwardChromaEvents(bool flag);

// Class Plugin
ChromaAnimationAPI::UseForwardChromaEvents(bool flag);

PluginUseIdleAnimation

アイドルアニメーションフラグが true の場合、他のアニメーションが再生されていないときに、アイドルアニメーションが使用されます。アイドルアニメーションは、PluginIsPlaying、PluginStopAnimationType、PluginGetPlayingAnimationId、PluginGetPlayingAnimationCount の API 呼び出しの影響を受けません。アイドルアニメーションフラグが false の場合、アイドルアニメーションは無効になります。Device には、EChromaSDKDeviceEnum の列挙型を使用します。

// DLL Interface
EXPORT_API void PluginUseIdleAnimation(
int device, bool flag);

// Class Plugin
ChromaAnimationAPI::UseIdleAnimation(
int device, bool flag);

PluginUseIdleAnimations

すべてのデバイスにアイドルアニメーションフラグを設定します。

// DLL Interface
EXPORT_API void PluginUseIdleAnimations(bool flag);

// Class Plugin
ChromaAnimationAPI::UseIdleAnimations(bool flag);

PluginUsePreloading

プリロードアニメーションフラグを設定します。既定では true に設定されています。アニメーションは ID で参照します。

// DLL Interface
EXPORT_API void PluginUsePreloading(
int animationId, bool flag);

// Class Plugin
ChromaAnimationAPI::UsePreloading(
int animationId, bool flag);

PluginUsePreloadingName

プリロードアニメーションフラグを設定します。既定では true に設定されています。アニメーションは名前で参照します。

// DLL Interface
EXPORT_API void PluginUsePreloadingName(
const wchar_t* path, bool flag);

// Class Plugin
ChromaAnimationAPI::UsePreloadingName(
const wchar_t* path, bool flag);