Change-Id: I136a7033b86d5c45dc947c1f9a72984f154ab636
Signed-off-by: Oleksandr Kaspruk <a.kaspruk@samsung.com>
return E_FAILURE;
}
- return __pQrCodeGeneratorImpl->SaveToFile(imageFilePath, imageFormat) ? E_SUCCESS : E_FAILURE;
+ return __pQrCodeGeneratorImpl->SaveToFile(imageFilePath, imageFormat, width, height) ? E_SUCCESS : E_FAILURE;
}
Tizen::Base::Collection::IListT<Tizen::Media::ImageFormat>*
}
bool
-_QrCodeGeneratorImpl::SaveToFile(const Tizen::Base::String& imagepath, Tizen::Media::ImageFormat imageFormat)
+_QrCodeGeneratorImpl::SaveToFile(const Tizen::Base::String& imagepath, Tizen::Media::ImageFormat imageFormat, int& width, int& height)
{
- int width = 0;
- int height = 0;
-
if(!GetSize(width, height))
{
return false;
bool Encode(const char* message, QrCodeMode mode, QrCodeErrorCorrectionLevel error_level, bool compatibility = true);
bool GetSize(int& width, int& height);
- bool SaveToFile(const Tizen::Base::String& imagepath, Tizen::Media::ImageFormat imageFormat = Tizen::Media::IMG_FORMAT_BMP);
+ bool SaveToFile(const Tizen::Base::String& imagepath, Tizen::Media::ImageFormat, int& width, int& height);
bool SaveToBuffer(unsigned char* image);
public: