|
// *********************************************************
// 楕円の描画
// 戻り値 : true 成功, false 失敗
// *********************************************************
int LboxGd::Arc( int x, int y, int w, int h, int color )
{
if ( this->lib == NULL ) {
this->SetLibLoadErrorMessage();
return false;
}
return LboxGd::Arc(
x, y,
w, h,
0, 359,
color
);
}
int LboxGd::Arc(
int x, int y, int w, int h, int s, int e, int color )
{
if ( this->lib == NULL ) {
this->SetLibLoadErrorMessage();
return false;
}
LPFUNC_gdImageArc Dll_gdImageArc;
Dll_gdImageArc =
(LPFUNC_gdImageArc)GetProcAddress(
lib, "gdImageArc@32"
);
if ( Dll_gdImageArc == NULL ) {
this->SetFuncLoadErrorMessage();
return false;
}
gdImagePtr im;
im = (gdImagePtr)(this->gd);
Dll_gdImageArc(im, x, y, w, h, s, e, color );
return true;
}
| |