24#include <com/sun/star/beans/PropertyValue.hpp>
25#include <com/sun/star/uno/Sequence.hxx>
40 Degree10 aRotation = aInputRotation % 3600_deg10;
42 if (aRotation == 0_deg10)
46 else if (aRotation != 900_deg10 && aRotation != 1800_deg10 && aRotation != 2700_deg10)
96 css::uno::Sequence<css::beans::PropertyValue> aFilterData{
106 rFilter.
ExportGraphic(aBitmap,
u"none", aStream, nFilterFormat, &aFilterData);
136 if (
exif.read(aSourceStream))
138 aOrientation =
exif.getOrientation();
152 exif.write(aTargetStream);
bool Rotate(Degree10 nAngle10, const Color &rFillColor)
Rotate bitmap by the specified angle.
const Size & GetSizePixel() const
const sal_uInt8 * GetData() const
sal_uInt32 GetDataSize() const
GfxLinkType GetType() const
Class to import and export graphic formats.
sal_uInt16 GetExportFormatNumberForShortName(std::u16string_view rShortName)
static GraphicFilter & GetGraphicFilter()
ErrCode ExportGraphic(const Graphic &rGraphic, const INetURLObject &rPath, sal_uInt16 nFormat, const css::uno::Sequence< css::beans::PropertyValue > *pFilterData=nullptr)
ErrCode ImportGraphic(Graphic &rGraphic, const INetURLObject &rPath, sal_uInt16 nFormat=GRFILTER_FORMAT_DONTKNOW, sal_uInt16 *pDeterminedFormat=nullptr, GraphicFilterImportFlags nImportFlags=GraphicFilterImportFlags::NONE)
GfxLink GetGfxLink() const
BitmapEx GetBitmapEx(const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
std::size_t WriteBytes(const void *pData, std::size_t nSize)
sal_uInt64 Seek(sal_uInt64 nPos)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
#define STREAM_SEEK_TO_BEGIN