+ switch( index )
+ {
+ case Dali::Toolkit::ImageVisual::Property::DESIRED_WIDTH:
+ {
+ int width;
+ if( value.Get( width ) )
+ {
+ mDesiredSize.SetWidth( width );
+ }
+ else
+ {
+ DALI_LOG_ERROR("BatchImageVisual: width property has incorrect type\n");
+ }
+ break;
+ }
+ case Dali::Toolkit::ImageVisual::Property::DESIRED_HEIGHT:
+ {
+ int height;
+ if( value.Get( height ) )
+ {
+ mDesiredSize.SetHeight( height );
+ }
+ else
+ {
+ DALI_LOG_ERROR("BatchImageVisual: height property has incorrect type\n");
+ }
+ break;
+ }
+ }