renderer.SetTextures( textureSet );
// Set actor to the size of the texture if set
- actor.SetSize( texture.GetWidth(), texture.GetHeight() );
+ actor.SetProperty( Actor::Property::SIZE, Vector2( texture.GetWidth(), texture.GetHeight() ) );
}
return actor;
}
-Image GetTexture( Actor actor )
-{
- Image image;
- if( actor && actor.GetRendererCount() )
- {
- Renderer renderer = actor.GetRendererAt( 0u );
- if( renderer )
- {
- TextureSet textureSet = renderer.GetTextures();
- if( textureSet && textureSet.GetTextureCount() )
- {
- image = TextureGetImage( textureSet, 0u );
- }
- }
- }
-
- return image;
-}
-
} // namespace Dali