//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
return GetBitmapN(imgFilePath, BITMAP_PIXEL_FORMAT_INVALID);
}
-
-static bool g_init = false;
-
_AppResourceImpl*
_AppResourceImpl::GetInstance(void)
{
AppResource* pAppResource = AppResource::GetInstance();
if (pAppResource)
{
- g_init = true;
return pAppResource->__pAppResourceImpl;
}
return null;
void
_AppResourceImpl::Reinitialize(void)
{
- if (!g_init)
- {
- SysLog(NID_APP, "AppResource not initialized yet.");
- return;
- }
-
_AppResourceImpl* pThis = _AppResourceImpl::GetInstance();
if (pThis == null)
{
}
}
+Bitmap*
+_AppResourceImpl::GetNonScalingBitmapN(const Tizen::Base::String& imagePath)
+{
+ _IAppResourceBitmap* pAppResourceBitmap = Tizen::App::_AppResourceImpl::Get_IAppResourceBitmapN(APP_RESOURCE_BITMAP);
+
+ if (pAppResourceBitmap != null)
+ {
+ return pAppResourceBitmap->GetBitmapN(imagePath, BITMAP_PIXEL_FORMAT_INVALID);
+ }
+ else
+ {
+ SysLog(NID_APP, "Getting pAppResourceBitmap instance is failed");
+ return null;
+ }
+}
} } // Tizen::App