return;
}
- String imagePath = null;
- if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pDrawBitmap) == false)
- {
- imagePath = _BitmapImpl::GetInstance(*pDrawBitmap)->GetFileName();
- }
-
-// if (imagePath.IsEmpty() == false)
-// {
-// __pBitmapVisualElement->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
-// __pBitmapVisualElement->SetImageSource(imagePath);
-// }
-// else
- {
- pCanvas = __pBitmapVisualElement->GetCanvasN();
- SysTryCatch(NID_UI_CTRL, pCanvas != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
- pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
- pCanvas->Clear();
+ pCanvas = __pBitmapVisualElement->GetCanvasN();
+ SysTryCatch(NID_UI_CTRL, pCanvas != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
+ pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
+ pCanvas->Clear();
- DrawBitmap(*pCanvas, FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pDrawBitmap);
- }
+ DrawBitmap(*pCanvas, FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pDrawBitmap);
}
if(IsContextItem())