|
// *********************************************************
// カラー作成
// 戻り値 : true 成功, false 失敗
// *********************************************************
int LboxGd::CreateColor( int r, int g, int b )
{
if ( this->lib == NULL ) {
this->SetLibLoadErrorMessage();
return false;
}
LPFUNC_gdImageColor Dll_gdImageColorAllocate;
Dll_gdImageColorAllocate =
(LPFUNC_gdImageColor)GetProcAddress(
lib, "gdImageColorAllocate@16"
);
if ( Dll_gdImageColorAllocate == NULL ) {
this->SetFuncLoadErrorMessage();
return false;
}
gdImagePtr im;
im = (gdImagePtr)(this->gd);
int nRet;
nRet = Dll_gdImageColorAllocate(im, r, g, b );
return nRet;
}
| |