/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
namespace basegfx
{ /** Base Color class with three double values
This class derives all operators and common handling for a 3D data class from B3DTuple. All necessary extensions which are special for colors will be added here.
@see B3DTuple
*/ class SAL_WARN_UNUSED BASEGFX_DLLPUBLIC BColor : public B3DTuple
{ bool bAutomatic = false;
public: /** Create a Color with red, green and blue components from [0.0 to 1.0]
The color is initialized to (0.0, 0.0, 0.0)
*/
BColor()
{}
/** Create a 3D Color
@param fRed @param fGreen @param fBlue These parameters are used to initialize the red, green and blue intensities of the color
*/
BColor(double fRed, double fGreen, double fBlue)
: B3DTuple(fRed, fGreen, fBlue)
{}
/** Create a 3D Color
@param fLuminosity The parameter is used to initialize the red, green and blue intensities of the color
*/ explicit BColor(double fLuminosity)
: B3DTuple(fLuminosity, fLuminosity, fLuminosity)
{}
/** constructor with tuple to allow copy-constructing from B3DTuple-based classes
*/
BColor(const ::basegfx::B3DTuple& rTuple)
: B3DTuple(rTuple)
{}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.