There is an issue where a black screen appears in the preview image after applying cornerRadius.
Currently, we generate visuals in advance to receive cornerRadius, but it seems like the problem is that the empty buffer of the visual is being displayed on the screen.
Therefore, we will use colorVisual and set a transparent bg instead.
Change-Id: Ib8c0a982aec2d0a75c66fb5d13aa8526effa2424
// Create WidgetVisual for WidgetView
Property::Map propertyMap;
- Dali::Any source;
- mImageSource = Dali::NativeImageSource::New(source);
- Dali::Toolkit::ImageUrl nativeImageUrl = Dali::Toolkit::Image::GenerateUrl(mImageSource);
- propertyMap.Insert(Dali::Toolkit::Visual::Property::TYPE, Dali::Toolkit::Visual::IMAGE);
- propertyMap.Insert(Dali::Toolkit::ImageVisual::Property::URL, nativeImageUrl.GetUrl());
+ propertyMap.Insert(Dali::Toolkit::Visual::Property::TYPE, Dali::Toolkit::Visual::COLOR);
+ propertyMap.Insert(Dali::Toolkit::Visual::Property::MIX_COLOR, Color::TRANSPARENT);
Toolkit::Visual::Base widgetVisual = Toolkit::VisualFactory::Get().CreateVisual(propertyMap);
if(widgetVisual)
{