// EXTERNAL INCLUDES
#include <string>
-#include <dali/integration-api/bitmap.h>
-#include <dali/integration-api/resource-types.h>
-#include <dali/integration-api/resource-cache.h>
-
// INTERNAL INCLUDES
-#include "image-loaders/image-loader.h"
#include <bitmap-loader-impl.h>
namespace Dali
{
-BitmapLoader BitmapLoader::New(const std::string& filename)
+BitmapLoader BitmapLoader::New( const std::string& url,
+ ImageDimensions size,
+ FittingMode::Type fittingMode,
+ SamplingMode::Type samplingMode,
+ bool orientationCorrection)
{
- IntrusivePtr<Internal::BitmapLoader> internal = Internal::BitmapLoader::New(filename);
+ IntrusivePtr<Internal::BitmapLoader> internal = Internal::BitmapLoader::New(url, size, fittingMode, samplingMode, orientationCorrection);
return BitmapLoader( internal.Get() );
}
return *this;
}
-unsigned char* BitmapLoader::GetPixelData() const
-{
- return GetImplementation(*this).GetPixelData();
-}
-
-unsigned int BitmapLoader::GetImageHeight() const
+void BitmapLoader::Load()
{
- return GetImplementation(*this).GetImageHeight();
+ GetImplementation(*this).Load();
}
-unsigned int BitmapLoader::GetImageWidth() const
+bool BitmapLoader::IsLoaded()
{
- return GetImplementation(*this).GetImageWidth();
+ return GetImplementation(*this).IsLoaded();
}
-unsigned int BitmapLoader::GetBufferStride() const
+std::string BitmapLoader::GetUrl() const
{
- return GetImplementation(*this).GetBufferStride();
+ return GetImplementation(*this).GetUrl();
}
-Pixel::Format BitmapLoader::GetPixelFormat() const
+PixelDataPtr BitmapLoader::GetPixelData() const
{
- return GetImplementation(*this).GetPixelFormat();
+ return GetImplementation(*this).GetPixelData();
}
} // namespace Dali