This is so that the stretch borders metadata is not filtered and become incorrect.
Change-Id: I3cd4be5c8511e39938a159de5431ab2ef88c015d
TypeRegistration mType( typeid( Dali::NinePatchImage ), typeid( Dali::Image ), NULL );
} // unnamed namespace
-NinePatchImagePtr NinePatchImage::New( const std::string& filename, const ImageAttributes& attributes, ReleasePolicy releasePol )
+NinePatchImagePtr NinePatchImage::New( const std::string& filename, ReleasePolicy releasePol )
{
- Internal::NinePatchImagePtr internal( new NinePatchImage( filename, attributes, releasePol ) );
+ Internal::NinePatchImagePtr internal( new NinePatchImage( filename, releasePol ) );
internal->Initialize();
return internal;
}
-NinePatchImage::NinePatchImage( const std::string& filename, const ImageAttributes& attributes, ReleasePolicy releasePol )
+NinePatchImage::NinePatchImage( const std::string& filename, ReleasePolicy releasePol )
: ResourceImage( IMAGE_LOAD_POLICY_DEFAULT, releasePol ),
mParsedBorder(false)
{
mResourceClient = &tls.GetResourceClient();
Integration::PlatformAbstraction& platformAbstraction = tls.GetPlatformAbstraction();
- Integration::BitmapResourceType resourceType( ImageDimensions::FromFloatVec2( attributes.GetSize() ), attributes.GetScalingMode(), attributes.GetFilterMode(), attributes.GetOrientationCorrection() );
+ Integration::BitmapResourceType resourceType;
// Note, bitmap is only destroyed when the image is destroyed.
Integration::ResourcePointer resource = platformAbstraction.LoadResourceSynchronously( resourceType, filename );
* Also a pixel buffer for image data is allocated.
* Dali has ownership of the buffer.
* @param [in] filename File to load synchronously into buffer
- * @param [in] attributes Image attributes of the file
* @param [in] releasePol optionally relase memory when image is not visible on screen (default: keep image data until Image object is alive).
*/
static NinePatchImagePtr New( const std::string& filename,
- const ImageAttributes& attributes,
ReleasePolicy releasePol = IMAGE_RELEASE_POLICY_DEFAULT );
/**
* For better performance and portability use power of two dimensions.
* The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE.
* @param [in] filename File to load synchronously into buffer
- * @param [in] attributes Image attributes of the file
* @param [in] releasePol optionally relase memory when image is not visible on screen (default: keep image data until Image object is alive).
*/
NinePatchImage( const std::string& filename,
- const ImageAttributes& attributes,
ReleasePolicy releasePol = IMAGE_RELEASE_POLICY_DEFAULT );
/**
ResourceImagePtr image;
if( NinePatchImage::IsNinePatchUrl( url ) )
{
- image = NinePatchImage::New( url, attributes, releasePol );
+ image = NinePatchImage::New( url, releasePol );
}
else
{
NinePatchImage NinePatchImage::New( const std::string& filename )
{
- Internal::ImageAttributes defaultAttrs;
-
- Internal::NinePatchImagePtr internal = Internal::NinePatchImage::New( filename, defaultAttrs, Image::NEVER );
+ Internal::NinePatchImagePtr internal = Internal::NinePatchImage::New( filename, Image::NEVER );
return NinePatchImage(internal.Get());
}