Update for getting a bitmap resource
authorJaesung Ku <jaesung.ku@samsung.com>
Tue, 26 Mar 2013 12:06:15 +0000 (21:06 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Thu, 28 Mar 2013 01:29:48 +0000 (10:29 +0900)
Change-Id: I63bdd6b2c9cbca2b13ebf4139756540731aa4c4e
Signed-off-by: Jaesung Ku <jaesung.ku@samsung.com>
src/app/FApp_AppResourceImpl.cpp
src/app/FApp_AppResourceImpl.h [changed mode: 0644->0755]

index 04e2e08..7e8c60c 100644 (file)
@@ -241,5 +241,19 @@ _AppResourceImpl::Reinitialize(void)
        }
 }
 
+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");
+       }
+}
 
 } } // Tizen::App
old mode 100644 (file)
new mode 100755 (executable)
index f633981..10dd50c
@@ -42,7 +42,8 @@ enum AppResourceBy
 {
        APP_RESOURCE_DEFAULT,
        APP_RESOURCE_BY_APP_ID,
-       APP_RESOURCE_BY_LIBRARY_NAME
+       APP_RESOURCE_BY_LIBRARY_NAME,
+       APP_RESOURCE_BITMAP
 };
 
 class _AppResourceImpl
@@ -141,6 +142,7 @@ public:
        static void ReinitializeAll(void);
        static result ReleaseInstance(const Tizen::Base::String& key);
 
+       static Tizen::Graphics::Bitmap* GetNonScalingBitmapN(const Tizen::Base::String& imagePath);
 private:
        /**
        * This is the default constructor for this class.