Home
last modified time | relevance | path

Searched refs:rColor (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/AOO41X/main/vcl/inc/vcl/
H A Dsettings.hxx516 void Set3DColors( const Color& rColor );
517 void SetFaceColor( const Color& rColor ) in SetFaceColor() argument
518 { CopyData(); mpData->maFaceColor = rColor; } in SetFaceColor()
523 void SetCheckedColor( const Color& rColor ) in SetCheckedColor() argument
524 { CopyData(); mpData->maCheckedColor = rColor; } in SetCheckedColor()
527 void SetLightColor( const Color& rColor ) in SetLightColor() argument
528 { CopyData(); mpData->maLightColor = rColor; } in SetLightColor()
531 void SetLightBorderColor( const Color& rColor ) in SetLightBorderColor() argument
532 { CopyData(); mpData->maLightBorderColor = rColor; } in SetLightBorderColor()
535 void SetShadowColor( const Color& rColor ) in SetShadowColor() argument
[all …]
H A Dsalbtype.hxx125 inline BitmapColor( const Color& rColor );
162 inline BitmapColor& Merge( const BitmapColor& rColor, sal_uInt8 cTransparency );
244 inline void GetColorFor8Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
245 inline void SetColorFor8Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
247 inline void GetColorFor16BitMSB( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
248 inline void SetColorFor16BitMSB( const BitmapColor& rColor, HPBYTE pPixel ) const;
249 inline void GetColorFor16BitLSB( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
250 inline void SetColorFor16BitLSB( const BitmapColor& rColor, HPBYTE pPixel ) const;
252 inline void GetColorFor24Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
253 inline void SetColorFor24Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
[all …]
H A Doctree.hxx95 void AddColor( const BitmapColor& rColor );
98 inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor );
113 inline sal_uInt16 Octree::GetBestPaletteIndex( const BitmapColor& rColor ) in GetBestPaletteIndex() argument
115 pColor = &(BitmapColor&) rColor; in GetBestPaletteIndex()
145 inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor );
150 inline sal_uInt16 InverseColorMap::GetBestPaletteIndex( const BitmapColor& rColor ) in GetBestPaletteIndex() argument
152 return pMap[ ( ( (sal_uLong) rColor.GetRed() >> nBits ) << OCTREE_BITS_1 ) | in GetBestPaletteIndex()
153 ( ( (sal_uLong) rColor.GetGreen() >> nBits ) << OCTREE_BITS ) | in GetBestPaletteIndex()
154 ( (sal_uLong) rColor.GetBlue() >> nBits ) ]; in GetBestPaletteIndex()
/AOO41X/main/basegfx/inc/basegfx/color/
H A Dbcolor.hxx143 void blend(const BColor& rColor) in blend() argument
146 mfX = rColor.getRed() * fLuminance; in blend()
147 mfY = rColor.getGreen() * fLuminance; in blend()
148 mfZ = rColor.getBlue() * fLuminance; in blend()
162 …le getDistanceRed(const BColor& rColor) const { return (getRed() > rColor.getRed() ? getRed() - rC… in getDistanceRed()
163 …DistanceGreen(const BColor& rColor) const { return (getGreen() > rColor.getGreen() ? getGreen() - in getDistanceGreen()
164 …getDistanceBlue(const BColor& rColor) const { return (getBlue() > rColor.getBlue() ? getBlue() - r… in getDistanceBlue()
166 double getDistance(const BColor& rColor) const in getDistance()
168 const double fDistR(getDistanceRed(rColor)); in getDistance()
169 const double fDistG(getDistanceGreen(rColor)); in getDistance()
[all …]
/AOO41X/main/vcl/source/helper/
H A Dcanvastools.cxx251 const rendering::ARGBColor& rColor=aARGBColors[x]; in readBmp() local
254 BitmapColor( toByteColor(rColor.Red), in readBmp()
255 toByteColor(rColor.Green), in readBmp()
256 toByteColor(rColor.Blue))) ); in readBmp()
258 … BitmapColor( 255 - toByteColor(rColor.Alpha) )); in readBmp()
265 const rendering::ARGBColor& rColor=aARGBColors[x]; in readBmp() local
267 BitmapColor( toByteColor(rColor.Red), in readBmp()
268 toByteColor(rColor.Green), in readBmp()
269 toByteColor(rColor.Blue) )); in readBmp()
271 … BitmapColor( 255 - toByteColor(rColor.Alpha) )); in readBmp()
[all …]
/AOO41X/main/canvas/source/directx/
H A Ddx_impltools.cxx368 uno::Sequence< double > argbToDoubleSequence( const Gdiplus::ARGB& rColor ) in argbToDoubleSequence() argument
373 aRet[0] = ((rColor >> 16) & 0xFF) / 255.0; // red in argbToDoubleSequence()
374 aRet[1] = ((rColor >> 8) & 0xFF) / 255.0; // green in argbToDoubleSequence()
375 aRet[2] = (rColor & 0xFF) / 255.0; // blue in argbToDoubleSequence()
376 aRet[3] = ((rColor >> 24) & 0xFF) / 255.0; // alpha in argbToDoubleSequence()
381 uno::Sequence< sal_Int8 > argbToIntSequence( const Gdiplus::ARGB& rColor ) in argbToIntSequence() argument
386 aRet[0] = static_cast<sal_Int8>((rColor >> 16) & 0xFF); // red in argbToIntSequence()
387 aRet[1] = static_cast<sal_Int8>((rColor >> 8) & 0xFF); // green in argbToIntSequence()
388 aRet[2] = static_cast<sal_Int8>(rColor & 0xFF); // blue in argbToIntSequence()
389 aRet[3] = static_cast<sal_Int8>((rColor >> 24) & 0xFF); // alpha in argbToIntSequence()
[all …]
/AOO41X/main/vcl/inc/
H A Dimpoct.hxx43 inline ImpErrorQuad( const BitmapColor& rColor ) : in ImpErrorQuad() argument
44 nRed ( (long) rColor.GetRed() << 5L ), in ImpErrorQuad()
45 nGreen ( (long) rColor.GetGreen() << 5L ), in ImpErrorQuad()
46 nBlue ( (long) rColor.GetBlue() << 5L ) {} in ImpErrorQuad()
48 inline void operator=( const BitmapColor& rColor );
49 inline ImpErrorQuad& operator-=( const BitmapColor& rColor );
61 inline void ImpErrorQuad::operator=( const BitmapColor& rColor ) in operator =() argument
63 nRed = (long) rColor.GetRed() << 5L; in operator =()
64 nGreen = (long) rColor.GetGreen() << 5L; in operator =()
65 nBlue = (long) rColor.GetBlue() << 5L; in operator =()
[all …]
/AOO41X/main/sc/source/filter/excel/
H A Dxestyle.cxx138 explicit XclListColor( const Color& rColor, sal_uInt32 nColorId );
152 void Merge( const XclListColor& rColor );
157 XclListColor::XclListColor( const Color& rColor, sal_uInt32 nColorId ) : in XclListColor() argument
158 maColor( rColor ), in XclListColor()
163 ((rColor.GetRed() == 0x00) || (rColor.GetRed() == 0xFF)) && in XclListColor()
164 ((rColor.GetGreen() == 0x00) || (rColor.GetGreen() == 0xFF)) && in XclListColor()
165 ((rColor.GetBlue() == 0x00) || (rColor.GetBlue() == 0xFF)); in XclListColor()
168 void XclListColor::Merge( const XclListColor& rColor ) in Merge() argument
170 sal_uInt32 nWeight2 = rColor.GetWeighting(); in Merge()
174 …maColor.SetRed( lclGetMergedColorComp( maColor.GetRed(), mnWeight, rColor.maColor.GetRed(), … in Merge()
[all …]
/AOO41X/main/vcl/source/gdi/
H A Dbmpacc3.cxx48 void BitmapWriteAccess::SetLineColor( const Color& rColor ) in SetLineColor() argument
52 if( rColor.GetTransparency() == 255 ) in SetLineColor()
55 …te() ? new BitmapColor( (sal_uInt8) GetBestPaletteIndex( rColor ) ) : new BitmapColor( rColor ) ); in SetLineColor()
82 void BitmapWriteAccess::SetFillColor( const Color& rColor ) in SetFillColor() argument
86 if( rColor.GetTransparency() == 255 ) in SetFillColor()
89 …te() ? new BitmapColor( (sal_uInt8) GetBestPaletteIndex( rColor ) ) : new BitmapColor( rColor ) ); in SetFillColor()
108 void BitmapWriteAccess::Erase( const Color& rColor ) in Erase() argument
112 BitmapColor aColor = rColor; in Erase()
114 aColor = BitmapColor( (sal_uInt8)GetBestPaletteIndex( rColor) ); in Erase()
124 SetFillColor( rColor ); in Erase()
H A Dpngwrite.cxx355 const BitmapColor& rColor = mpAccess->GetPaletteColor( i ); in ImplWritePalette() local
356 *pTmp++ = rColor.GetRed(); in ImplWritePalette()
357 *pTmp++ = rColor.GetGreen(); in ImplWritePalette()
358 *pTmp++ = rColor.GetBlue(); in ImplWritePalette()
564 const BitmapColor& rColor = mpAccess->GetPixel( nY, nX ); in ImplGetFilter() local
565 *pDest++ = rColor.GetRed(); in ImplGetFilter()
566 *pDest++ = rColor.GetGreen(); in ImplGetFilter()
567 *pDest++ = rColor.GetBlue(); in ImplGetFilter()
577 const BitmapColor& rColor = mpAccess->GetPixel( nY, nX ); in ImplGetFilter() local
578 *pDest++ = rColor.GetRed(); in ImplGetFilter()
[all …]
H A Dpdfwriter.cxx187 void PDFWriter::DrawPixel( const Point& rPos, const Color& rColor ) in DrawPixel() argument
189 ((PDFWriterImpl*)pImplementation)->drawPixel( rPos, rColor ); in DrawPixel()
320 void PDFWriter::SetLineColor( const Color& rColor ) in SetLineColor() argument
322 ((PDFWriterImpl*)pImplementation)->setLineColor( rColor ); in SetLineColor()
325 void PDFWriter::SetFillColor( const Color& rColor ) in SetFillColor() argument
327 ((PDFWriterImpl*)pImplementation)->setFillColor( rColor ); in SetFillColor()
370 void PDFWriter::SetTextColor( const Color& rColor ) in SetTextColor() argument
372 ((PDFWriterImpl*)pImplementation)->setTextColor( rColor ); in SetTextColor()
380 void PDFWriter::SetTextFillColor( const Color& rColor ) in SetTextFillColor() argument
382 ((PDFWriterImpl*)pImplementation)->setTextFillColor( rColor ); in SetTextFillColor()
[all …]
H A Dpdfwriter_impl.hxx1066 void appendStrokingColor( const Color& rColor, rtl::OStringBuffer& rBuffer );
1067 void appendNonStrokingColor( const Color& rColor, rtl::OStringBuffer& rBuffer );
1126 void setLineColor( const Color& rColor ) in setLineColor() argument
1128 …icsStack.front().m_aLineColor = ImplIsColorTransparent(rColor) ? Color( COL_TRANSPARENT ) : rColor; in setLineColor()
1132 void setFillColor( const Color& rColor ) in setFillColor() argument
1134 …icsStack.front().m_aFillColor = ImplIsColorTransparent(rColor) ? Color( COL_TRANSPARENT ) : rColor; in setFillColor()
1144 void setTextLineColor( const Color& rColor ) in setTextLineColor() argument
1146 m_aGraphicsStack.front().m_aTextLineColor = rColor; in setTextLineColor()
1156 void setOverlineColor( const Color& rColor ) in setOverlineColor() argument
1158 m_aGraphicsStack.front().m_aOverlineColor = rColor; in setOverlineColor()
[all …]
/AOO41X/main/sw/source/core/inc/
H A Dswfont.hxx88 inline void SetColor( const Color& rColor );
89 inline void SetFillColor( const Color& rColor );
200 inline void SetColor( const Color& rColor );
201 inline void SetFillColor( const Color& rColor );
204 inline void SetUnderColor( const Color &rColor ) { aUnderColor = rColor; } in SetUnderColor() argument
206 inline void SetOverColor( const Color &rColor ) { aOverColor = rColor; } in SetOverColor() argument
372 inline void SwFont::SetColor( const Color& rColor ) in SetColor() argument
375 aSub[0].SetColor( rColor ); in SetColor()
376 aSub[1].SetColor( rColor ); in SetColor()
377 aSub[2].SetColor( rColor ); in SetColor()
[all …]
/AOO41X/main/svtools/inc/svtools/
H A Dctrlbox.hxx182 virtual sal_uInt16 InsertEntry( const Color& rColor, const XubString& rStr,
191 virtual sal_uInt16 GetEntryPos( const Color& rColor ) const;
197 void SelectEntry( const Color& rColor, sal_Bool bSelect = sal_True );
204 sal_Bool IsEntrySelected( const Color& rColor ) const;
215 inline void ColorListBox::SelectEntry( const Color& rColor, sal_Bool bSelect ) in SelectEntry() argument
217 sal_uInt16 nPos = GetEntryPos( rColor ); in SelectEntry()
222 inline sal_Bool ColorListBox::IsEntrySelected( const Color& rColor ) const in IsEntrySelected()
224 sal_uInt16 nPos = GetEntryPos( rColor ); in IsEntrySelected()
293 void SetColor( const Color& rColor );
347 inline void LineListBox::SetColor( const Color& rColor ) in SetColor() argument
[all …]
/AOO41X/main/sd/source/ui/slidesorter/controller/
H A DSlsProperties.cxx176 void Properties::SetBackgroundColor (const Color& rColor) in SetBackgroundColor() argument
178 maBackgroundColor = rColor; in SetBackgroundColor()
191 void Properties::SetTextColor (const Color& rColor) in SetTextColor() argument
193 maTextColor = rColor; in SetTextColor()
207 void Properties::SetSelectionColor (const Color& rColor) in SetSelectionColor() argument
209 maSelectionColor = rColor; in SetSelectionColor()
223 void Properties::SetHighlightColor (const Color& rColor) in SetHighlightColor() argument
225 maHighlightColor = rColor; in SetHighlightColor()
/AOO41X/main/cui/source/tabpages/
H A Dtpcolor.cxx1004 void SvxColorTabPage::ConvertColorValues (Color& rColor, ColorModel eModell) in ConvertColorValues() argument
1010 CmykToRgb_Impl (rColor, (sal_uInt16)rColor.GetTransparency() ); in ConvertColorValues()
1011 rColor.SetTransparency ((sal_uInt8) 0); in ConvertColorValues()
1018 RgbToCmyk_Impl (rColor, nK ); in ConvertColorValues()
1019 rColor.SetTransparency ((sal_uInt8) nK); in ConvertColorValues()
1203 void SvxColorTabPage::RgbToCmyk_Impl( Color& rColor, sal_uInt16& rK ) in RgbToCmyk_Impl() argument
1208 nColor1 = 255 - rColor.GetRed(); in RgbToCmyk_Impl()
1211 nColor2 = 255 - rColor.GetGreen(); in RgbToCmyk_Impl()
1214 nColor3 = 255 - rColor.GetBlue(); in RgbToCmyk_Impl()
1219 rColor.SetRed( sal::static_int_cast< sal_uInt8 >( nColor1 - rK ) ); in RgbToCmyk_Impl()
[all …]
/AOO41X/main/drawinglayer/source/attribute/
H A Dmaterialattribute3d.cxx48 …ImpMaterialAttribute3D(const basegfx::BColor& rColor, const basegfx::BColor& rSpecular, const base… in ImpMaterialAttribute3D() argument
50 maColor(rColor), in ImpMaterialAttribute3D()
57 ImpMaterialAttribute3D(const basegfx::BColor& rColor) in ImpMaterialAttribute3D() argument
59 maColor(rColor), in ImpMaterialAttribute3D()
101 const basegfx::BColor& rColor, in MaterialAttribute3D() argument
106 rColor, rSpecular, rEmission, nSpecularIntensity)) in MaterialAttribute3D()
111 const basegfx::BColor& rColor) in MaterialAttribute3D() argument
112 : mpMaterialAttribute3D(new ImpMaterialAttribute3D(rColor)) in MaterialAttribute3D()
H A Dsdrlineattribute.cxx53 const basegfx::BColor& rColor, in ImpSdrLineAttribute() argument
61 maColor(rColor), in ImpSdrLineAttribute()
68 ImpSdrLineAttribute(const basegfx::BColor& rColor) in ImpSdrLineAttribute() argument
73 maColor(rColor), in ImpSdrLineAttribute()
126 const basegfx::BColor& rColor, in SdrLineAttribute() argument
135 rColor, in SdrLineAttribute()
143 const basegfx::BColor& rColor) in SdrLineAttribute() argument
146 rColor)) in SdrLineAttribute()
/AOO41X/main/tools/inc/tools/
H A Dcolor.hxx163 sal_Bool IsRGBEqual( const Color& rColor ) const;
181 sal_Bool operator==( const Color& rColor ) const in operator ==()
182 { return (mnColor == rColor.mnColor); } in operator ==()
183 sal_Bool operator!=( const Color& rColor ) const in operator !=()
184 { return !(Color::operator==( rColor )); } in operator !=()
189 TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Color& rColor );
190 TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Color& rColor );
220 inline sal_Bool Color::IsRGBEqual( const Color& rColor ) const in IsRGBEqual()
222 return (COLORDATA_RGB( mnColor ) == COLORDATA_RGB( rColor.mnColor )); in IsRGBEqual()
/AOO41X/main/drawinglayer/source/processor3d/
H A Dzbufferprocessor3d.cxx213 double decideColorAndOpacity(basegfx::BColor& rColor) in decideColorAndOpacity() argument
218 rColor = mpCurrentMaterial->getColor(); in decideColorAndOpacity()
229 mrProcessor.getGeoTexSvx()->modifyBColor(aTexCoor, rColor, fOpacity); in decideColorAndOpacity()
246 rColor = mrProcessor.getSdrLightingAttribute().solveColorModel( in decideColorAndOpacity()
248 rColor, in decideColorAndOpacity()
257 rColor *= aBlendColor; in decideColorAndOpacity()
262 rColor *= mpCurrentMaterial->getColor(); in decideColorAndOpacity()
270 rColor = mrProcessor.getSdrLightingAttribute().solveColorModel( in decideColorAndOpacity()
272 rColor, in decideColorAndOpacity()
280 rColor.setRed(maIntColor.getX().getVal()); in decideColorAndOpacity()
[all …]
/AOO41X/main/svtools/source/filter/wmf/
H A Dwmfwr.hxx144 void WriteColor(const Color & rColor);
157 void WMFRecord_CreateBrushIndirect(const Color& rColor);
159 void WMFRecord_CreatePenIndirect(const Color& rColor, const LineInfo& rLineInfo );
180 void WMFRecord_SetBkColor(const Color & rColor);
183 void WMFRecord_SetPixel(const Point & rPoint, const Color & rColor);
186 void WMFRecord_SetTextColor(const Color & rColor);
196 void CreateSelectDeletePen( const Color& rColor, const LineInfo& rLineInfo );
198 void CreateSelectDeleteBrush(const Color& rColor);
H A Dwmfwr.cxx363 void WMFWriter::WriteColor(const Color & rColor) in WriteColor() argument
365 …*pWMF << (sal_uInt8) rColor.GetRed() << (sal_uInt8) rColor.GetGreen() << (sal_uInt8) rColor.GetBlu… in WriteColor()
412 void WMFWriter::WMFRecord_CreateBrushIndirect(const Color& rColor) in WMFRecord_CreateBrushIndirect() argument
416 if( rColor==Color(COL_TRANSPARENT) ) in WMFRecord_CreateBrushIndirect()
421 WriteColor( rColor ); in WMFRecord_CreateBrushIndirect()
488 void WMFWriter::WMFRecord_CreatePenIndirect(const Color& rColor, const LineInfo& rLineInfo ) in WMFRecord_CreatePenIndirect() argument
491 sal_uInt16 nStyle = rColor == Color( COL_TRANSPARENT ) ? W_PS_NULL : W_PS_SOLID; in WMFRecord_CreatePenIndirect()
521 WriteColor( rColor ); in WMFRecord_CreatePenIndirect()
837 void WMFWriter::WMFRecord_SetBkColor(const Color & rColor) in WMFRecord_SetBkColor() argument
840 WriteColor(rColor); in WMFRecord_SetBkColor()
[all …]
/AOO41X/main/filter/source/flash/
H A Dswfwriter2.cxx229 void Tag::addRGBA( const Color& rColor ) in addRGBA() argument
231 addUI8( rColor.GetRed() ); in addRGBA()
232 addUI8( rColor.GetGreen() ); in addRGBA()
233 addUI8( rColor.GetBlue() ); in addRGBA()
234 addUI8( 0xff - rColor.GetTransparency() ); in addRGBA()
239 void Tag::addRGB( const Color& rColor ) in addRGB() argument
241 addUI8( rColor.GetRed() ); in addRGB()
242 addUI8( rColor.GetGreen() ); in addRGB()
243 addUI8( rColor.GetBlue() ); in addRGB()
598 GradRecord( sal_uInt8 nRatio, const Color& rColor ) : mnRatio( nRatio ), maColor( rColor ) {} in GradRecord()
/AOO41X/main/sc/source/filter/inc/
H A Dfapihelper.hxx59 inline static sal_Int32 ConvertToApiColor( const Color& rColor ) in ConvertToApiColor() argument
60 { return static_cast< sal_Int32 >( rColor.GetColor() ); } in ConvertToApiColor()
197 bool GetColorProperty( Color& rColor, const ::rtl::OUString& rPropName ) const;
223 inline void SetColorProperty( const ::rtl::OUString& rPropName, const Color& rColor ) in SetColorProperty() argument
224 { SetProperty( rPropName, ScfApiHelper::ConvertToApiColor( rColor ) ); } in SetColorProperty()
275 bool ReadValue( Color& rColor );
293 inline void WriteValue( const Color& rColor ) in WriteValue() argument
294 { WriteValue( ScfApiHelper::ConvertToApiColor( rColor ) ); } in WriteValue()
/AOO41X/main/filter/source/graphicfilter/etiff/
H A Detiff.cxx345 const BitmapColor& rColor = mpAcc->GetPaletteColor( i ); in ImplWritePalette() local
346 *mpOStm << (sal_uInt16)( rColor.GetRed() << 8 ); in ImplWritePalette()
350 const BitmapColor& rColor = mpAcc->GetPaletteColor( i ); in ImplWritePalette() local
351 *mpOStm << (sal_uInt16)( rColor.GetGreen() << 8 ); in ImplWritePalette()
355 const BitmapColor& rColor = mpAcc->GetPaletteColor( i ); in ImplWritePalette() local
356 *mpOStm << (sal_uInt16)( rColor.GetBlue() << 8 ); in ImplWritePalette()
384 const BitmapColor& rColor = mpAcc->GetPixel( y, x ); in ImplWriteBody() local
385 Compress( rColor.GetRed() ); in ImplWriteBody()
386 Compress( rColor.GetGreen() ); in ImplWriteBody()
387 Compress( rColor.GetBlue() ); in ImplWriteBody()

12345678910>>...12