|
// *********************************************************
// 拡張子によるロード
// 戻り値 : true 成功, false 失敗
// *********************************************************
BOOL LboxGd::Load( LboxString *LPath )
{
return LboxGd::Load(
LPath->szLboxString
);
}
BOOL LboxGd::Load( LPTSTR lpPath )
{
LboxString LString;
LPTSTR ptr;
LString.operator = (lpPath);
LString.Upper();
ptr = LString.FindExtension();
if ( lstrcmp( ptr, ".PNG" ) == 0 ) {
return LboxGd::LoadPng( lpPath );
}
if ( lstrcmp( ptr, ".JPEG" ) == 0 ) {
return LboxGd::LoadJpeg( lpPath );
}
if ( lstrcmp( ptr, ".JPG" ) == 0 ) {
return LboxGd::LoadJpeg( lpPath );
}
if ( lstrcmp( ptr, ".GIF" ) == 0 ) {
return LboxGd::LoadGif( lpPath );
}
return false;
}
| |