return image;
}
-ResourceImagePtr ResourceImage::New( const std::string& url, const Dali::ImageAttributes& attributes, LoadPolicy loadPol, ReleasePolicy releasePol )
+ResourceImagePtr ResourceImage::New( const std::string& url, const ImageAttributes& attributes, LoadPolicy loadPol, ReleasePolicy releasePol )
{
ResourceImagePtr image;
if( IsNinePatch( url ) )
return connected;
}
-const Dali::ImageAttributes& ResourceImage::GetAttributes() const
+const ImageAttributes& ResourceImage::GetAttributes() const
{
if( mTicket )
{
Size size;
mImageFactory.GetImageSize( mRequest, mTicket, size );
mWidth = size.width;
- // The app will probably ask for the height immediately, so don't waste the synchronous file IO that ImageFactory may have just done:
- DALI_ASSERT_DEBUG( 0 == mHeight || unsigned(size.height) == mHeight );
if( 0 == mHeight )
{
mHeight = size.height;
Size size;
mImageFactory.GetImageSize( mRequest, mTicket, size );
mHeight = size.height;
- DALI_ASSERT_DEBUG( 0 == mWidth || unsigned(size.width) == mWidth );
if( 0 == mWidth )
{
mWidth = size.width;