- return url.substr( url.find_last_of(".") + 1 ) == "svg";
-}
-
-void SvgVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
-{
- Property::Value* imageURLValue = propertyMap.Find( Toolkit::ImageVisual::Property::URL, IMAGE_URL_NAME );
- if( imageURLValue )
- {
- std::string imageUrl;
- if( imageURLValue->Get( imageUrl ) )
- {
- SetImage( imageUrl );
- }
- else
- {
- DALI_LOG_ERROR( "The property '%s' is not a string\n", IMAGE_URL_NAME );
- }
- }