static Tizen::Locales::DateTimeFormatter* CreateDateFormatterN(Tizen::Locales::DateTimeStyle dateStyle);
static Tizen::Locales::DateTimeFormatter* CreateDateTimeFormatterN(Tizen::Locales::DateTimeStyle dateStyle);
static Tizen::Locales::DateTimeFormatter* CreateTimeFormatterN(void);
- static Tizen::Graphics::Bitmap* GetBitmapN(const Tizen::Base::String& bitmapPath);
+ static Tizen::Graphics::Bitmap* GetBitmapN(const Tizen::Base::String& bitmapPath, bool isAbsolute = false);
static Tizen::Graphics::Bitmap* GetBlankBitmap(void);
static Tizen::Base::String GetString(const Tizen::Base::String& stringId);
static Tizen::Base::String GetMonthString(int month);
<itemSet/>
</Footer>
<Header>
- <property backgroundBitmapPath="" color="#F8F6EF" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" titleIconPath="" titleText="::IDS_CLD_BODY_CALENDAR" titleTextColor=""/>
+ <property backgroundBitmapPath="" color="#F8F6EF" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" titleIconPath="" titleText="::IDS_CLD_OPT_SETTINGS" titleTextColor=""/>
<itemSet/>
</Header>
<SectionTableView id="IDC_SECTIONTABLEVIEW" parent="IDL_SETTING_FORM">
if (pCalendar->GetAccountId() != INVALID_ACCOUNT_ID)
{
Account account = AccountAccessor::GetInstance()->GetAccount(pCalendar->GetAccountId());
- pBitmapIcon = ResourceManager::GetBitmapN(account.GetAccountProvider().GetIconPath());
+ pBitmapIcon = ResourceManager::GetBitmapN(account.GetAccountProvider().GetIconPath(), true);
accountName = account.GetUserName();
+ AppLogDebug("%ls - %ls", accountName.GetPointer(), account.GetAccountProvider().GetIconPath().GetPointer());
}
else
{
pBitmapIcon = ResourceManager::GetBitmapN(IDB_ICON_PHONE_CALENDAR);
accountName = L"Phone";
+ AppLogDebug("%ls - %ls", accountName.GetPointer(), IDB_ICON_PHONE_CALENDAR);
}
int x = 0;
#include <cstdlib>
#include <new>
+#include <FMedia.h>
#include <FSystem.h>
#include "ClResourceManager.h"
#include "ClTypes.h"
using namespace Tizen::Base;
using namespace Tizen::Graphics;
using namespace Tizen::Locales;
+using namespace Tizen::Media;
using namespace Tizen::System;
static const int BASE_DAY = 7;
}
Bitmap*
-ResourceManager::GetBitmapN(const String& bitmapPath)
+ResourceManager::GetBitmapN(const String& bitmapPath, bool isAbsolute)
{
+ if (isAbsolute == true)
+ {
+ Image image;
+ image.Construct();
+ return image.DecodeN(bitmapPath, BITMAP_PIXEL_FORMAT_ARGB8888);
+ }
+
TryReturn(GetInstance() != null, null, "[E_FAILURE] Unable to get resource instance.");
return GetInstance()->__pAppResource->GetBitmapN(bitmapPath);