86 assert((2 < btPttnIndex) && (btPttnIndex < 72));
90 pPttnArray[
i] = pTempArray[7 -
i];
109 return std::unique_ptr<XFBGImage>();
150 std::unique_ptr<sal_uInt8[]> pImageBuff(
new sal_uInt8[nSize]);
151 memcpy(pImageBuff.get(), aPicMemStream.
GetData(), nSize);
154 std::unique_ptr<XFBGImage> xXFBGImage(
new XFBGImage);
155 xXFBGImage->SetImageData(pImageBuff.get(), nSize);
159 xXFBGImage->SetRepeate();
static void GetPattern(sal_uInt16 btPttnIndex, sal_uInt8(&pPttnArray)[8])
std::unique_ptr< XFBGImage > GetFillPattern()
LwpColor * GetFillColor()
bool IsPatternFill() const
void Read(LwpObjectStream *pStrm)
lwpcolor class (red, green, blue, extra)
sal_uInt16 GetGreen() const
bool IsValidColor() const
void Read(LwpObjectStream *pStrm)
@descr read color and then resolve the RGB values
sal_uInt16 GetBlue() const
sal_uInt16 GetRed() const
stream class for LwpObject body data provide stream like interface to read object data
sal_uInt16 QuickReaduInt16(bool *pFailure=nullptr)
@descr Quick read sal_uInt32
void SkipExtra()
@descr skip extra bytes
std::size_t GetEndOfData() const
BitmapEx GetBitmap() const
const Color & GetBackgroundColor() const
void SetBackgroundColor(const Color &rColor)
void SetPixelColor(const Color &rColor)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
For LWP filter architecture prototype WordPro Pattern Table.
const sal_uInt8 s_pLwpPatternTab[][8]
BitmapEx CreateFromData(sal_uInt8 const *pData, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int32 nStride, sal_Int8 nBitCount, bool bReversColors, bool bReverseAlpha)