#include <bitmapex.hxx>

Public Member Functions | |
| SAL_DLLPRIVATE ImpBitmap * | ImplGetBitmapImpBitmap () const |
| SAL_DLLPRIVATE ImpBitmap * | ImplGetMaskImpBitmap () const |
| BitmapEx () | |
| BitmapEx (const ResId &rResId) | |
| BitmapEx (const BitmapEx &rBitmapEx) | |
| BitmapEx (const BitmapEx &rBitmapEx, Point aSrc, Size aSize) | |
| BitmapEx (const Bitmap &rBmp) | |
| BitmapEx (const Bitmap &rBmp, const Bitmap &rMask) | |
| BitmapEx (const Bitmap &rBmp, const AlphaMask &rAlphaMask) | |
| BitmapEx (const Bitmap &rBmp, const Color &rTransparentColor) | |
| ~BitmapEx () | |
| BitmapEx & | operator= (const BitmapEx &rBitmapEx) |
| BOOL | operator== (const BitmapEx &rBitmapEx) const |
| BOOL | operator!= (const BitmapEx &rBitmapEx) const |
| BOOL | operator! () const |
| BOOL | IsEqual (const BitmapEx &rBmpEx) const |
| BOOL | IsEmpty () const |
| void | SetEmpty () |
| void | Clear () |
| void | Draw (OutputDevice *pOutDev, const Point &rDestPt) const |
| void | Draw (OutputDevice *pOutDev, const Point &rDestPt, const Size &rDestSize) const |
| void | Draw (OutputDevice *pOutDev, const Point &rDestPt, const Size &rDestSize, const Point &rSrcPtPixel, const Size &rSrcSizePixel) const |
| BOOL | IsTransparent () const |
| TransparentType | GetTransparentType () const |
| Bitmap | GetBitmap (const Color *pTransReplaceColor=NULL) const |
| Bitmap | GetMask () const |
| BitmapEx | GetColorTransformedBitmapEx (BmpColorMode eColorMode) const |
| BOOL | IsAlpha () const |
| AlphaMask | GetAlpha () const |
| const Size & | GetSizePixel () const |
| void | SetSizePixel (const Size &rNewSize) |
| const Size & | GetPrefSize () const |
| void | SetPrefSize (const Size &rPrefSize) |
| const MapMode & | GetPrefMapMode () const |
| void | SetPrefMapMode (const MapMode &rPrefMapMode) |
| const Color & | GetTransparentColor () const |
| void | SetTransparentColor (const Color &rColor) |
| USHORT | GetBitCount () const |
| ULONG | GetSizeBytes () const |
| ULONG | GetChecksum () const |
| BOOL | Convert (BmpConversion eConversion) |
| Convert bitmap format. | |
| BOOL | ReduceColors (USHORT nNewColorCount, BmpReduce eReduce=BMP_REDUCE_SIMPLE) |
| Reduce number of colors for the bitmap. | |
| BOOL | Dither (ULONG nDitherFlags=BMP_DITHER_MATRIX) |
| Apply a dither algorithm to the bitmap. | |
| BOOL | Crop (const Rectangle &rRectPixel) |
| Crop the bitmap. | |
| BOOL | Expand (ULONG nDX, ULONG nDY, const Color *pInitColor=NULL, BOOL bExpandTransparent=FALSE) |
| Expand the bitmap by pixel padding. | |
| BOOL | CopyPixel (const Rectangle &rRectDst, const Rectangle &rRectSrc, const BitmapEx *pBmpExSrc=NULL) |
| Copy a rectangular area from another bitmap. | |
| BOOL | Erase (const Color &rFillColor) |
| Fill the entire bitmap with the given color. | |
| BOOL | Invert () |
| Perform the Invert operation on every pixel. | |
| BOOL | Mirror (ULONG nMirrorFlags) |
| Mirror the bitmap. | |
| BOOL | Scale (const Size &rNewSize, ULONG nScaleFlag=BMP_SCALE_FAST) |
| Scale the bitmap. | |
| BOOL | Scale (const double &rScaleX, const double &rScaleY, ULONG nScaleFlag=BMP_SCALE_FAST) |
| Scale the bitmap. | |
| BOOL | Rotate (long nAngle10, const Color &rFillColor) |
| Rotate bitmap by the specified angle. | |
| BOOL | Replace (const Color &rSearchColor, const Color &rReplaceColor, ULONG nTol=0) |
| Replace all pixel having the search color with the specified color. | |
| BOOL | Replace (const Color *pSearchColors, const Color *pReplaceColors, ULONG nColorCount, const ULONG *pTols=NULL) |
| Replace all pixel having one the search colors with the corresponding replace color. | |
| BOOL | Adjust (short nLuminancePercent=0, short nContrastPercent=0, short nChannelRPercent=0, short nChannelGPercent=0, short nChannelBPercent=0, double fGamma=1.0, BOOL bInvert=FALSE) |
| Change various global color characteristics. | |
| BOOL | Filter (BmpFilter eFilter, const BmpFilterParam *pFilterParam=NULL, const Link *pProgress=NULL) |
| Apply specified filter to the bitmap. | |
| sal_uInt8 | GetTransparency (sal_Int32 nX, sal_Int32 nY) const |
| Get transparency at given position. | |
Static Public Member Functions | |
| static BitmapEx | AutoScaleBitmap (BitmapEx &aBitmap, const long aStandardSize) |
Private Attributes | |
| Bitmap | aBitmap |
| Bitmap | aMask |
| Size | aBitmapSize |
| Color | aTransparentColor |
| TransparentType | eTransparent |
| BOOL | bAlpha |
Friends | |
| class | ImpGraphic |
| VCL_DLLPUBLIC SvStream & | operator<< (SvStream &rOStm, const BitmapEx &rBitmapEx) |
| VCL_DLLPUBLIC SvStream & | operator>> (SvStream &rIStm, BitmapEx &rBitmapEx) |
Definition at line 51 of file bitmapex.hxx.
| BitmapEx::BitmapEx | ( | ) |
| BitmapEx::BitmapEx | ( | const ResId & | rResId | ) |
Definition at line 96 of file bitmapex.cxx.
References StyleSettings::GetCurrentSymbolsStyleName(), Application::GetSettings(), and AllSettings::GetStyleSettings().
| BitmapEx::BitmapEx | ( | const BitmapEx & | rBitmapEx | ) |
Definition at line 62 of file bitmapex.cxx.
| BitmapEx::BitmapEx | ( | const BitmapEx & | rBitmapEx, | |
| Point | aSrc, | |||
| Size | aSize | |||
| ) |
Definition at line 72 of file bitmapex.cxx.
References aBitmap, aBitmapSize, aMask, bAlpha, CopyPixel(), Bitmap::GetBitCount(), IsAlpha(), IsEmpty(), and IsTransparent().
| BitmapEx::BitmapEx | ( | const Bitmap & | rBmp | ) |
Definition at line 121 of file bitmapex.cxx.
Definition at line 131 of file bitmapex.cxx.
References aMask, Bitmap::GetBitCount(), Bitmap::GetSizePixel(), and Bitmap::ImplMakeMono().
Definition at line 151 of file bitmapex.cxx.
References aBitmap, aMask, BMP_CONVERSION_24BIT, Bitmap::Convert(), Bitmap::GetBitCount(), AlphaMask::GetSizePixel(), and Bitmap::GetSizePixel().
| BitmapEx::BitmapEx | ( | const Bitmap & | rBmp, | |
| const Color & | rTransparentColor | |||
| ) |
Definition at line 170 of file bitmapex.cxx.
References aBitmap, aMask, aTransparentColor, Bitmap::CreateMask(), and Bitmap::GetSizePixel().
| BitmapEx::~BitmapEx | ( | ) |
Definition at line 185 of file bitmapex.cxx.
| SAL_DLLPRIVATE ImpBitmap* BitmapEx::ImplGetBitmapImpBitmap | ( | ) | const [inline] |
Definition at line 68 of file bitmapex.hxx.
Referenced by OutputDevice::ImplDrawBitmapEx(), and IntroWindow::SetBackgroundBitmap().
| SAL_DLLPRIVATE ImpBitmap* BitmapEx::ImplGetMaskImpBitmap | ( | ) | const [inline] |
Definition at line 193 of file bitmapex.cxx.
References aBitmap, aBitmapSize, aMask, aTransparentColor, bAlpha, and eTransparent.
| BOOL BitmapEx::operator== | ( | const BitmapEx & | rBitmapEx | ) | const |
Definition at line 210 of file bitmapex.cxx.
References aBitmap, aBitmapSize, aMask, aTransparentColor, bAlpha, eTransparent, TRANSPARENT_COLOR, and TRANSPARENT_NONE.
| BOOL BitmapEx::operator!= | ( | const BitmapEx & | rBitmapEx | ) | const [inline] |
Definition at line 87 of file bitmapex.hxx.
| BOOL BitmapEx::operator! | ( | ) | const [inline] |
Definition at line 88 of file bitmapex.hxx.
| BOOL BitmapEx::IsEqual | ( | const BitmapEx & | rBmpEx | ) | const |
Definition at line 232 of file bitmapex.cxx.
References aBitmap, aMask, bAlpha, eTransparent, and Bitmap::IsEqual().
Referenced by MetaBmpExScalePartAction::Compare(), MetaBmpExScaleAction::Compare(), MetaBmpExAction::Compare(), AnimationBitmap::IsEqual(), and Animation::IsEqual().
| BOOL BitmapEx::IsEmpty | ( | ) | const |
Definition at line 242 of file bitmapex.cxx.
References aBitmap, aMask, and Bitmap::IsEmpty().
Referenced by Bitmap::Bitmap(), BitmapEx(), CopyPixel(), GDIMetaFile::CreateThumbnail(), ImplImageBmp::Expand(), Image::GetColorTransformedImage(), OutputDevice::GetDownsampledBitmapEx(), Image::Image(), Image::ImplInit(), ImplImageBmp::ImplUpdateDisabledBmpEx(), ImplImageBmp::ImplUpdateDisplayBmp(), Animation::IsEmpty(), ImageAryData::IsLoadable(), ImplImageTree::loadImage(), vcl::PNGWriterImpl::PNGWriterImpl(), ImplImageBmp::Replace(), and IntroWindow::SetBackgroundBitmap().
| void BitmapEx::SetEmpty | ( | ) |
Definition at line 249 of file bitmapex.cxx.
References aBitmap, aMask, bAlpha, eTransparent, Bitmap::SetEmpty(), and TRANSPARENT_NONE.
Referenced by Clear(), ImplImageBmp::Create(), GDIMetaFile::CreateThumbnail(), OutputDevice::GetDownsampledBitmapEx(), ImplImageTree::loadImage(), and Animation::SetEmpty().
| void BitmapEx::Clear | ( | ) |
Definition at line 259 of file bitmapex.cxx.
References SetEmpty().
Referenced by vcl::PNGReaderImpl::GetBitmapEx(), and ImpGraphic::ImplClearGraphics().
| void BitmapEx::Draw | ( | OutputDevice * | pOutDev, | |
| const Point & | rDestPt | |||
| ) | const |
Definition at line 739 of file bitmapex.cxx.
References OutputDevice::DrawBitmapEx().
Referenced by Animation::Draw(), ImpGraphic::ImplDraw(), Button::ImplDrawAlignedImage(), Menu::ImplPaint(), and ImageControl::UserDraw().
| void BitmapEx::Draw | ( | OutputDevice * | pOutDev, | |
| const Point & | rDestPt, | |||
| const Size & | rDestSize | |||
| ) | const |
| void BitmapEx::Draw | ( | OutputDevice * | pOutDev, | |
| const Point & | rDestPt, | |||
| const Size & | rDestSize, | |||
| const Point & | rSrcPtPixel, | |||
| const Size & | rSrcSizePixel | |||
| ) | const |
| BOOL BitmapEx::IsTransparent | ( | ) | const |
Definition at line 266 of file bitmapex.cxx.
References eTransparent, and TRANSPARENT_NONE.
Referenced by BitmapEx(), CopyPixel(), ImplImageBmp::Create(), GDIMetaFile::CreateThumbnail(), ImplImageBmp::Draw(), vcl::PDFWriterImpl::drawWallpaper(), ImageList::GetAsHorizontalStrip(), GDIMetaFile::ImplBmpMonoFnc(), OutputDevice::ImplDrawBitmapWallpaper(), ImpGraphic::ImplIsTransparent(), ImplImageBmp::ImplUpdateDisplayBmp(), ImageList::InsertFromHorizontalBitmap(), IsAlpha(), Animation::IsTransparent(), vcl::PNGWriterImpl::PNGWriterImpl(), and ImplImageBmp::Replace().
| TransparentType BitmapEx::GetTransparentType | ( | ) | const [inline] |
Definition at line 105 of file bitmapex.hxx.
Referenced by OutputDevice::DrawBitmapEx(), Image::Image(), Image::ImplInit(), and vcl::PDFWriterImpl::writeBitmapObject().
| Bitmap BitmapEx::GetBitmap | ( | const Color * | pTransReplaceColor = NULL |
) | const |
Definition at line 280 of file bitmapex.cxx.
References aBitmap, aMask, aTransparentColor, Bitmap::CreateMask(), eTransparent, GetAlpha(), IsAlpha(), Bitmap::Replace(), TRANSPARENT_COLOR, and TRANSPARENT_NONE.
Referenced by Bitmap::Bitmap(), vcl::PDFWriterImpl::createBitmapEmit(), ImplImageBmp::Draw(), OutputDevice::DrawBitmapEx(), ImageList::GetAsHorizontalStrip(), ImplImageBmp::GetBitmapEx(), Image::Image(), ImplConvertTransparentAction(), OutputDevice::ImplDrawBitmapEx(), OutputDevice::ImplDrawBitmapWallpaper(), ImpGraphic::ImplGetBitmap(), Image::ImplInit(), ImplImageBmp::ImplUpdateDisabledBmpEx(), ImplImageBmp::ImplUpdateDisplayBmp(), ImageList::InsertFromHorizontalBitmap(), operator<<(), vcl::PNGWriterImpl::PNGWriterImpl(), and vcl::PDFWriterImpl::writeBitmapObject().
| Bitmap BitmapEx::GetMask | ( | ) | const |
Definition at line 334 of file bitmapex.cxx.
References aMask, Bitmap::ImplMakeMono(), and IsAlpha().
Referenced by vcl::PDFWriterImpl::createBitmapEmit(), GDIMetaFile::CreateThumbnail(), ImplImageBmp::Draw(), ImageList::GetAsHorizontalStrip(), GDIMetaFile::ImplBmpMonoFnc(), ImplConvertTransparentAction(), OutputDevice::ImplDrawBitmapEx(), OutputDevice::ImplDrawBitmapWallpaper(), ImplImageBmp::ImplUpdateDisplayBmp(), vcl::PNGWriterImpl::PNGWriterImpl(), and vcl::PDFWriterImpl::writeBitmapObject().
| BitmapEx BitmapEx::GetColorTransformedBitmapEx | ( | BmpColorMode | eColorMode | ) | const |
Definition at line 304 of file bitmapex.cxx.
References aBitmap, aMask, BMP_COLOR_HIGHCONTRAST, BMP_COLOR_MONOCHROME_BLACK, BMP_COLOR_MONOCHROME_WHITE, BMP_COMBINE_OR, Bitmap::CombineSimple(), Bitmap::Erase(), Bitmap::GetColorTransformedBitmap(), Bitmap::GetSizePixel(), and Bitmap::IsEmpty().
Referenced by ImplImageBmp::ColorTransform(), ImplImageBmp::Draw(), and Image::GetColorTransformedImage().
| BOOL BitmapEx::IsAlpha | ( | ) | const |
Definition at line 273 of file bitmapex.cxx.
References bAlpha, and IsTransparent().
Referenced by BitmapEx(), CopyPixel(), ImplImageBmp::Create(), vcl::PDFWriterImpl::createBitmapEmit(), ImplImageBmp::Draw(), GetAlpha(), ImageList::GetAsHorizontalStrip(), GetBitmap(), ImplImageBmp::GetBitmapEx(), GetMask(), GDIMetaFile::ImplBmpMonoFnc(), ImplConvertTransparentAction(), OutputDevice::ImplDrawBitmapEx(), ImpGraphic::ImplIsAlpha(), ImplImageBmp::ImplUpdateDisplayBmp(), vcl::PNGWriterImpl::PNGWriterImpl(), ImplImageBmp::Replace(), and vcl::PDFWriterImpl::writeBitmapObject().
| AlphaMask BitmapEx::GetAlpha | ( | ) | const |
Definition at line 346 of file bitmapex.cxx.
References aMask, AlphaMask::ImplSetBitmap(), and IsAlpha().
Referenced by vcl::PDFWriterImpl::createBitmapEmit(), ImplImageBmp::Draw(), GetBitmap(), GDIMetaFile::ImplBmpMonoFnc(), ImplConvertTransparentAction(), OutputDevice::ImplDrawBitmapEx(), ImplImageBmp::ImplUpdateDisabledBmpEx(), vcl::PNGWriterImpl::PNGWriterImpl(), and vcl::PDFWriterImpl::writeBitmapObject().
| const Size& BitmapEx::GetSizePixel | ( | ) | const [inline] |
Definition at line 115 of file bitmapex.hxx.
Referenced by AutoScaleBitmap(), CopyPixel(), vcl::PDFWriterImpl::createBitmapEmit(), GDIMetaFile::CreateThumbnail(), OutputDevice::DrawBitmapEx(), OutputDevice::DrawImage(), GDIMetaFile::GetBoundRect(), OutputDevice::GetDownsampledBitmapEx(), Graphic::GetSizePixel(), MenuFloatingWindow::HighlightItem(), GDIMetaFile::ImplBmpMonoFnc(), MenuFloatingWindow::ImplCalcClipRegion(), Menu::ImplCalcSize(), OutputDevice::ImplDrawBitmapEx(), OutputDevice::ImplDrawBitmapWallpaper(), ImplDrawDefault(), MenuFloatingWindow::ImplDrawScroller(), MenuFloatingWindow::ImplGetItemRect(), ImpGraphic::ImplGetPrefSize(), Menu::ImplPaint(), ImplQPrinter::ImplPrintMtf(), ImplImageBmp::ImplUpdateDisabledBmpEx(), ImageList::InsertFromHorizontalStrip(), MenuFloatingWindow::Paint(), and ImageControl::UserDraw().
| void BitmapEx::SetSizePixel | ( | const Size & | rNewSize | ) |
| const Size& BitmapEx::GetPrefSize | ( | ) | const [inline] |
Definition at line 118 of file bitmapex.hxx.
Referenced by vcl::PDFWriter::DrawBitmapEx(), vcl::PDFWriterImpl::drawWallpaper(), ImpGraphic::ImplGetPrefMapMode(), ImpGraphic::ImplGetPrefSize(), and vcl::PNGWriterImpl::ImplWritepHYs().
| void BitmapEx::SetPrefSize | ( | const Size & | rPrefSize | ) | [inline] |
Definition at line 119 of file bitmapex.hxx.
Referenced by vcl::PNGReaderImpl::GetBitmapEx(), ImpGraphic::ImplReadEmbedded(), and ImpGraphic::ImplSetPrefSize().
| const MapMode& BitmapEx::GetPrefMapMode | ( | ) | const [inline] |
Definition at line 121 of file bitmapex.hxx.
Referenced by vcl::PDFWriter::DrawBitmapEx(), vcl::PDFWriterImpl::drawWallpaper(), ImpGraphic::ImplGetPrefMapMode(), and vcl::PNGWriterImpl::ImplWritepHYs().
| void BitmapEx::SetPrefMapMode | ( | const MapMode & | rPrefMapMode | ) | [inline] |
Definition at line 122 of file bitmapex.hxx.
Referenced by vcl::PNGReaderImpl::GetBitmapEx(), ImpGraphic::ImplReadEmbedded(), and ImpGraphic::ImplSetPrefMapMode().
| const Color& BitmapEx::GetTransparentColor | ( | ) | const [inline] |
| void BitmapEx::SetTransparentColor | ( | const Color & | rColor | ) | [inline] |
Definition at line 125 of file bitmapex.hxx.
| USHORT BitmapEx::GetBitCount | ( | ) | const [inline] |
| ULONG BitmapEx::GetSizeBytes | ( | ) | const |
Definition at line 360 of file bitmapex.cxx.
References aBitmap, aMask, eTransparent, Bitmap::GetSizeBytes(), and TRANSPARENT_BITMAP.
Referenced by Animation::GetSizeBytes(), and ImpGraphic::ImplGetSizeBytes().
| ULONG BitmapEx::GetChecksum | ( | ) | const |
Definition at line 372 of file bitmapex.cxx.
References aBitmap, aMask, bAlpha, eTransparent, Bitmap::GetChecksum(), Bitmap::IsEmpty(), and TRANSPARENT_BITMAP.
Referenced by GDIMetaFile::GetChecksum(), Animation::GetChecksum(), AnimationBitmap::GetChecksum(), and ImpGraphic::ImplGetChecksum().
| BOOL BitmapEx::Convert | ( | BmpConversion | eConversion | ) |
Convert bitmap format.
| eConversion | The format this bitmap should be converted to. |
Definition at line 543 of file bitmapex.cxx.
References aBitmap, and Bitmap::Convert().
Referenced by Animation::Convert(), GDIMetaFile::ImplBmpConvertFnc(), and OutputDevice::ImplDrawBitmapEx().
| BOOL BitmapEx::ReduceColors | ( | USHORT | nNewColorCount, | |
| BmpReduce | eReduce = BMP_REDUCE_SIMPLE | |||
| ) |
Reduce number of colors for the bitmap.
| nNewColorCount | Maximal number of bitmap colors after the reduce operation | |
| eReduce | Algorithm to use for color reduction |
Definition at line 550 of file bitmapex.cxx.
References aBitmap, and Bitmap::ReduceColors().
Referenced by Animation::ReduceColors().
| BOOL BitmapEx::Dither | ( | ULONG | nDitherFlags = BMP_DITHER_MATRIX |
) |
Apply a dither algorithm to the bitmap.
This method dithers the bitmap inplace, i.e. a true color bitmap is converted to a paletted bitmap, reducing the color deviation by error diffusion.
| nDitherFlags | The algorithm to be used for dithering |
Definition at line 700 of file bitmapex.cxx.
References aBitmap, and Bitmap::Dither().
Referenced by Animation::Dither().
| BOOL BitmapEx::Crop | ( | const Rectangle & | rRectPixel | ) |
Crop the bitmap.
| rRectPixel | A rectangle specifying the crop amounts on all four sides of the bitmap. If the upper left corner of the bitmap is assigned (0,0), then this method cuts out the given rectangle from the bitmap. Note that the rectangle is clipped to the bitmap's dimension, i.e. negative left,top rectangle coordinates or exceeding width or height is ignored. |
Definition at line 521 of file bitmapex.cxx.
References aBitmap, aBitmapSize, aMask, Bitmap::Crop(), eTransparent, Bitmap::GetSizePixel(), and TRANSPARENT_BITMAP.
Referenced by ImplImageBmp::Draw(), vcl::PDFWriter::DrawBitmapEx(), and OutputDevice::GetDownsampledBitmapEx().
| BOOL BitmapEx::Expand | ( | ULONG | nDX, | |
| ULONG | nDY, | |||
| const Color * | pInitColor = NULL, |
|||
| BOOL | bExpandTransparent = FALSE | |||
| ) |
Expand the bitmap by pixel padding.
| nDX | Number of pixel to pad at the right border of the bitmap | |
| nDY | Number of scanlines to pad at the bottom border of the bitmap | |
| pInitColor | Color to use for padded pixel |
Definition at line 557 of file bitmapex.cxx.
References aBitmap, aBitmapSize, aMask, eTransparent, Bitmap::Expand(), Bitmap::GetSizePixel(), and TRANSPARENT_BITMAP.
Referenced by ImplImageBmp::Expand().
| BOOL BitmapEx::CopyPixel | ( | const Rectangle & | rRectDst, | |
| const Rectangle & | rRectSrc, | |||
| const BitmapEx * | pBmpExSrc = NULL | |||
| ) |
Copy a rectangular area from another bitmap.
| rRectDst | Destination rectangle in this bitmap. This is clipped to the bitmap dimensions. | |
| rRectSrc | Source rectangle in pBmpSrc. This is clipped to the source bitmap dimensions. Note further that no scaling takes place during this copy operation, i.e. only the minimum of source and destination rectangle's width and height are used. | |
| pBmpSrc | The source bitmap to copy from. If this argument is NULL, or equal to the object this method is called on, copying takes place within the same bitmap. |
Definition at line 582 of file bitmapex.cxx.
References aBitmap, aMask, bAlpha, Bitmap::CopyPixel(), Bitmap::Erase(), eTransparent, GetSizePixel(), AlphaMask::ImplGetBitmap(), IsAlpha(), Bitmap::IsEmpty(), IsEmpty(), IsTransparent(), and TRANSPARENT_BITMAP.
Referenced by BitmapEx(), ImageList::GetAsHorizontalStrip(), and ImplImageBmp::Replace().
| BOOL BitmapEx::Erase | ( | const Color & | rFillColor | ) |
Fill the entire bitmap with the given color.
| rFillColor | Color value to use for filling. Set the transparency part of the color to fill the mask. |
Definition at line 671 of file bitmapex.cxx.
References aBitmap, aMask, Bitmap::Erase(), eTransparent, and TRANSPARENT_BITMAP.
| BOOL BitmapEx::Invert | ( | ) |
Perform the Invert operation on every pixel.
Definition at line 401 of file bitmapex.cxx.
References aBitmap, aTransparentColor, eTransparent, Bitmap::Invert(), and TRANSPARENT_COLOR.
Referenced by ImplImageBmp::Invert(), Image::Invert(), and Animation::Invert().
| BOOL BitmapEx::Mirror | ( | ULONG | nMirrorFlags | ) |
Mirror the bitmap.
| nMirrorFlags | About which axis (horizontal, vertical, or both) to mirror |
Definition at line 418 of file bitmapex.cxx.
References aBitmap, aMask, eTransparent, Bitmap::Mirror(), and TRANSPARENT_BITMAP.
Referenced by OutputDevice::ImplDrawBitmapEx(), and Animation::Mirror().
| BOOL BitmapEx::Scale | ( | const Size & | rNewSize, | |
| ULONG | nScaleFlag = BMP_SCALE_FAST | |||
| ) |
Scale the bitmap.
| rNewSize | The resulting size of the scaled bitmap | |
| nScaleFlag | The algorithm to be used for scaling |
Definition at line 457 of file bitmapex.cxx.
References aBitmapSize.
Referenced by AutoScaleBitmap(), OutputDevice::GetDownsampledBitmapEx(), OutputDevice::ImplDrawBitmapWallpaper(), ImpGraphic::ImplGetBitmapEx(), and SetSizePixel().
| BOOL BitmapEx::Scale | ( | const double & | rScaleX, | |
| const double & | rScaleY, | |||
| ULONG | nScaleFlag = BMP_SCALE_FAST | |||
| ) |
Scale the bitmap.
| rScaleX | The scale factor in x direction. | |
| rScaleY | The scale factor in y direction. |
Definition at line 435 of file bitmapex.cxx.
References aBitmap, aBitmapSize, aMask, BMP_SCALE_FAST, eTransparent, Bitmap::GetSizePixel(), Bitmap::Scale(), and TRANSPARENT_BITMAP.
| BOOL BitmapEx::Rotate | ( | long | nAngle10, | |
| const Color & | rFillColor | |||
| ) |
Rotate bitmap by the specified angle.
| nAngle10 | The rotation angle in tenth of a degree. The bitmap is always rotated around its center. | |
| rFillColor | The color to use for filling blank areas. During rotation, the bitmap is enlarged such that the whole rotation result fits in. The empty spaces around that rotated original bitmap are then filled with this color. |
Definition at line 475 of file bitmapex.cxx.
References aBitmap, aBitmapSize, aMask, aTransparentColor, Bitmap::Erase(), eTransparent, Bitmap::GetSizePixel(), Bitmap::Rotate(), TRANSPARENT_BITMAP, TRANSPARENT_COLOR, and TRANSPARENT_NONE.
| BOOL BitmapEx::Replace | ( | const Color & | rSearchColor, | |
| const Color & | rReplaceColor, | |||
| ULONG | nTol = 0 | |||
| ) |
Replace all pixel having the search color with the specified color.
| rSearchColor | Color specifying which pixel should be replaced | |
| rReplaceColor | Color to be placed in all changed pixel | |
| nTol | Tolerance value. Specifies the maximal difference between rSearchColor and the individual pixel values, such that the corresponding pixel is still regarded a match. |
Definition at line 707 of file bitmapex.cxx.
References aBitmap, and Bitmap::Replace().
Referenced by Image::GetColorTransformedImage(), GDIMetaFile::ImplBmpReplaceFnc(), ImageList::InsertFromHorizontalBitmap(), and ImplImageBmp::ReplaceColors().
| BOOL BitmapEx::Replace | ( | const Color * | pSearchColors, | |
| const Color * | pReplaceColors, | |||
| ULONG | nColorCount, | |||
| const ULONG * | pTols = NULL | |||
| ) |
Replace all pixel having one the search colors with the corresponding replace color.
| pSearchColor | Array of colors specifying which pixel should be replaced | |
| pReplaceColor | Array of colors to be placed in all changed pixel | |
| nColorCount | Size of the aforementioned color arrays | |
| nTol | Tolerance value. Specifies the maximal difference between pSearchColor colors and the individual pixel values, such that the corresponding pixel is still regarded a match. |
Definition at line 714 of file bitmapex.cxx.
References aBitmap, and Bitmap::Replace().
| BOOL BitmapEx::Adjust | ( | short | nLuminancePercent = 0, |
|
| short | nContrastPercent = 0, |
|||
| short | nChannelRPercent = 0, |
|||
| short | nChannelGPercent = 0, |
|||
| short | nChannelBPercent = 0, |
|||
| double | fGamma = 1.0, |
|||
| BOOL | bInvert = FALSE | |||
| ) |
Change various global color characteristics.
| nLuminancePercent | Percent of luminance change, valid range [-100,100]. Values outside this range are clipped to the valid range. | |
| nContrastPercent | Percent of contrast change, valid range [-100,100]. Values outside this range are clipped to the valid range. | |
| nChannelRPercent | Percent of red channel change, valid range [-100,100]. Values outside this range are clipped to the valid range. | |
| nChannelGPercent | Percent of green channel change, valid range [-100,100]. Values outside this range are clipped to the valid range. | |
| nChannelBPercent | Percent of blue channel change, valid range [-100,100]. Values outside this range are clipped to the valid range. | |
| fGamma | Exponent of the gamma function applied to the bitmap. The value 1.0 results in no change, the valid range is (0.0,10.0]. Values outside this range are regarded as 1.0. | |
| bInvert | If TRUE, invert the channel values with the logical 'not' operator |
Definition at line 721 of file bitmapex.cxx.
References aBitmap, and Bitmap::Adjust().
Referenced by Animation::Adjust(), and GDIMetaFile::ImplBmpAdjustFnc().
| BOOL BitmapEx::Filter | ( | BmpFilter | eFilter, | |
| const BmpFilterParam * | pFilterParam = NULL, |
|||
| const Link * | pProgress = NULL | |||
| ) |
Apply specified filter to the bitmap.
| eFilter | The filter algorithm to apply | |
| pFilterParam | Various parameter for the different bitmap filter algorithms | |
| pProgress | A callback for showing the progress of the vectorization |
Definition at line 732 of file bitmapex.cxx.
References aBitmap, and Bitmap::Filter().
Referenced by Animation::Filter().
| sal_uInt8 BitmapEx::GetTransparency | ( | sal_Int32 | nX, | |
| sal_Int32 | nY | |||
| ) | const |
Get transparency at given position.
Definition at line 818 of file bitmapex.cxx.
References aBitmap, aBitmapSize, Bitmap::AcquireReadAccess(), aMask, aTransparentColor, bAlpha, eTransparent, BitmapReadAccess::GetColor(), BitmapReadAccess::GetPixel(), Bitmap::IsEmpty(), Bitmap::ReleaseAccess(), TRANSPARENT_BITMAP, TRANSPARENT_COLOR, and TRANSPARENT_NONE.
Definition at line 761 of file bitmapex.cxx.
References BMP_SCALE_INTERPOLATE, OutputDevice::DrawBitmapEx(), OutputDevice::DrawRect(), OutputDevice::GetBitmapEx(), Application::GetDefaultDevice(), GetSizePixel(), Scale(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and VirtualDevice::SetOutputSizePixel().
friend class ImpGraphic [friend] |
Definition at line 53 of file bitmapex.hxx.
| VCL_DLLPUBLIC SvStream& operator<< | ( | SvStream & | rOStm, | |
| const BitmapEx & | rBitmapEx | |||
| ) | [friend] |
Definition at line 890 of file bitmapex.cxx.
| VCL_DLLPUBLIC SvStream& operator>> | ( | SvStream & | rIStm, | |
| BitmapEx & | rBitmapEx | |||
| ) | [friend] |
Definition at line 908 of file bitmapex.cxx.
Bitmap BitmapEx::aBitmap [private] |
Definition at line 57 of file bitmapex.hxx.
Referenced by Adjust(), BitmapEx(), Convert(), CopyPixel(), Crop(), Dither(), Erase(), Expand(), Filter(), GetBitmap(), GetChecksum(), GetColorTransformedBitmapEx(), GetSizeBytes(), GetTransparency(), Invert(), IsEmpty(), IsEqual(), Mirror(), operator<<(), operator=(), operator==(), ReduceColors(), Replace(), Rotate(), Scale(), and SetEmpty().
Bitmap BitmapEx::aMask [private] |
Definition at line 58 of file bitmapex.hxx.
Referenced by BitmapEx(), CopyPixel(), Crop(), Erase(), Expand(), GetAlpha(), GetBitmap(), GetChecksum(), GetColorTransformedBitmapEx(), GetMask(), GetSizeBytes(), GetTransparency(), IsEmpty(), IsEqual(), Mirror(), operator<<(), operator=(), operator==(), operator>>(), Rotate(), Scale(), and SetEmpty().
Size BitmapEx::aBitmapSize [private] |
Definition at line 59 of file bitmapex.hxx.
Referenced by BitmapEx(), Crop(), Expand(), GetTransparency(), ImpGraphic::ImplReadEmbedded(), operator=(), operator==(), Rotate(), and Scale().
Color BitmapEx::aTransparentColor [private] |
Definition at line 60 of file bitmapex.hxx.
Referenced by BitmapEx(), GetBitmap(), GetTransparency(), Invert(), operator<<(), operator=(), operator==(), operator>>(), and Rotate().
TransparentType BitmapEx::eTransparent [private] |
Definition at line 61 of file bitmapex.hxx.
Referenced by CopyPixel(), Crop(), Erase(), Expand(), GetBitmap(), GetChecksum(), GetSizeBytes(), GetTransparency(), Invert(), IsEqual(), IsTransparent(), Mirror(), operator<<(), operator=(), operator==(), Rotate(), Scale(), and SetEmpty().
BOOL BitmapEx::bAlpha [private] |
Definition at line 62 of file bitmapex.hxx.
Referenced by BitmapEx(), CopyPixel(), GetChecksum(), GetTransparency(), IsAlpha(), IsEqual(), operator=(), operator==(), and SetEmpty().
1.5.6