22#include <com/sun/star/graphic/GraphicProvider.hpp>
23#include <com/sun/star/graphic/XGraphicProvider.hpp>
30using ::com::sun::star::uno::Reference;
31using ::com::sun::star::graphic::XGraphic;
32using ::com::sun::star::graphic::XGraphicProvider;
37 if (i_rImageURL.isEmpty())
42 Reference<uno::XComponentContext> xContext(::comphelper::getProcessComponentContext());
43 Reference<XGraphicProvider> xProvider(graphic::GraphicProvider::create(xContext));
45 aMediaProperties.
put(
"URL", i_rImageURL);
46 Reference<XGraphic> xGraphic
48 return Image(xGraphic);
50 catch (
const uno::Exception&)
bool put(const OUString &_rValueName, const VALUE_TYPE &_rValue)
css::uno::Sequence< css::beans::PropertyValue > getPropertyValues() const
#define DBG_UNHANDLED_EXCEPTION(...)
Image getImageFromURL(const OUString &i_rImageURL)