27 sal_uInt32
header, bitmapType;
29 SAL_INFO(
"drawinglayer.emf",
"EMF+\timage\nEMF+\theader: 0x" << std::hex <<
header <<
" type: " <<
type << std::dec);
35 SAL_INFO(
"drawinglayer.emf",
"EMF+\tbitmap width: " <<
width <<
" height: " <<
height <<
" stride: " <<
stride <<
" pixelFormat: 0x" << std::hex <<
pixelFormat <<
" bitmapType: 0x" << bitmapType << std::dec);
37 if ((bitmapType != 0) || (
width == 0))
48 sal_uInt32 mfType, mfSize;
56 SAL_INFO(
"drawinglayer.emf",
"EMF+\tmetafile type: " << mfType <<
" dataSize: " << mfSize <<
" real size calculated from record dataSize: " << dataSize);
60 SvMemoryStream mfStream(
const_cast<char *
>(
static_cast<char const *
>(s.
GetData()) + s.
Tell()), dataSize, StreamMode::READ);
64#if OSL_DEBUG_LEVEL > 1
66 static sal_Int32 emfp_debug_stream_number = 0;
67 OUString emfp_debug_filename =
"/tmp/emf-embedded-stream" +
68 OUString::number(emfp_debug_stream_number++) +
".emf";
70 SvFileStream file(emfp_debug_filename, StreamMode::WRITE | StreamMode::TRUNC);
constexpr sal_Int8 header[]
Size GetSizePixel(const OutputDevice *pRefDevice=nullptr) const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
SvStream & ReadUInt32(sal_uInt32 &rUInt32)
sal_uInt64 Seek(sal_uInt64 nPos)
SvStream & ReadInt32(sal_Int32 &rInt32)
sal_uInt64 remainingSize()
SvStream & WriteStream(SvStream &rStream)
#define SAL_INFO(area, stream)
void Read(SvMemoryStream &s, sal_uInt32 dataSize, bool bUseWholeStream)