|
// *********************************************************
// 矩形の描画
// 戻り値 : true 成功, false 失敗
// *********************************************************
int LboxGd::Box(
int x1, int y1, int x2, int y2, int color, int fill )
{
if ( this->lib == NULL ) {
this->SetLibLoadErrorMessage();
return false;
}
LPFUNC_gdImageRectangle Dll_gdImageRectangle;
if ( fill ) {
Dll_gdImageRectangle =
(LPFUNC_gdImageRectangle)GetProcAddress(
lib, "imageFilledRectAngle@24"
);
}
else {
Dll_gdImageRectangle =
(LPFUNC_gdImageRectangle)GetProcAddress(
lib, "gdImageRectangle@24"
);
}
if ( Dll_gdImageRectangle == NULL ) {
this->SetFuncLoadErrorMessage();
return false;
}
gdImagePtr im;
im = (gdImagePtr)(this->gd);
Dll_gdImageRectangle(im, x1, y1, x2, y2, color );
return true;
}
| |