Lines Matching refs:rColor
69 sal_uInt32 ColorOf (BitmapColor& rColor) const;
70 sal_uInt8 GrayOf (BitmapColor& rColor) const;
196 SalPrinterBmp::ColorOf (BitmapColor& rColor) const in ColorOf()
198 if (rColor.IsIndex()) in ColorOf()
199 return ColorOf (mpBmpBuffer->maPalette[rColor.GetIndex()]); in ColorOf()
201 return ((rColor.GetBlue()) & 0x000000ff) in ColorOf()
202 | ((rColor.GetGreen() << 8) & 0x0000ff00) in ColorOf()
203 | ((rColor.GetRed() << 16) & 0x00ff0000); in ColorOf()
207 SalPrinterBmp::GrayOf (BitmapColor& rColor) const in GrayOf()
209 if (rColor.IsIndex()) in GrayOf()
210 return GrayOf (mpBmpBuffer->maPalette[rColor.GetIndex()]); in GrayOf()
212 return ( rColor.GetBlue() * 28UL in GrayOf()
213 + rColor.GetGreen() * 151UL in GrayOf()
214 + rColor.GetRed() * 77UL ) >> 8; in GrayOf()