// *********************************************************// 直線の描画// 戻り値 : 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;
}
Box
// *********************************************************// 矩形の描画// 戻り値 : 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;
}
Arc
// *********************************************************// 楕円の描画// 戻り値 : 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;
}