|
// *********************************************************
// 直線の描画
// 戻り値 : true 成功, false 失敗
// *********************************************************
// スタイル使用
int LboxGd::Line( int x1, int y1, int x2, int y2 )
{
if ( this->lib == NULL ) {
this->SetLibLoadErrorMessage();
return false;
}
LPFUNC_gdImageLine Dll_gdImageLine;
Dll_gdImageLine =
(LPFUNC_gdImageLine)GetProcAddress(
lib, "gdImageLine@24"
);
if ( Dll_gdImageLine == NULL ) {
this->SetFuncLoadErrorMessage();
return false;
}
gdImagePtr im;
im = (gdImagePtr)(this->gd);
Dll_gdImageLine(im, x1, y1, x2, y2, gdStyled );
return true;
}
// 色使用
int LboxGd::Line( int x1, int y1, int x2, int y2, int color )
{
if ( this->lib == NULL ) {
this->SetLibLoadErrorMessage();
return false;
}
LPFUNC_gdImageLine Dll_gdImageLine;
Dll_gdImageLine =
(LPFUNC_gdImageLine)GetProcAddress(
lib, "gdImageLine@24"
);
if ( Dll_gdImageLine == NULL ) {
this->SetFuncLoadErrorMessage();
return false;
}
gdImagePtr im;
im = (gdImagePtr)(this->gd);
Dll_gdImageLine(im, x1, y1, x2, y2, color );
return true;
}
| |