Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/vcl/inc/graphic/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 1 kB image not shown  

Quelle  BitmapContainer.hxx   Sprache: C

 
/* -*- 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/.
 */


#pragma once

#include <vcl/dllapi.h>
#include <vcl/bitmapex.hxx>

struct SwapInfo;

class SAL_DLLPUBLIC_RTTI BitmapContainer final
{
public:
    BitmapEx maBitmapEx;

    BitmapContainer() = default;

    BitmapContainer(BitmapEx const& rBitmapEx)
        : maBitmapEx(rBitmapEx)
    {
    }

    bool operator==(const BitmapContainer& rOther) const { return maBitmapEx == rOther.maBitmapEx; }

    void createSwapInfo(SwapInfo& rSwapInfo);

    bool isAlpha() { return maBitmapEx.IsAlpha(); }

    const BitmapEx& getBitmapExRef() const { return maBitmapEx; }

    Size getPrefSize() const
    {
        Size aSize = maBitmapEx.GetPrefSize();
        if (!aSize.Width() || !aSize.Height())
            aSize = maBitmapEx.GetSizePixel();
        return aSize;
    }

    MapMode getPrefMapMode() const
    {
        const Size aSize = maBitmapEx.GetPrefSize();
        if (aSize.Width() && aSize.Height())
            return maBitmapEx.GetPrefMapMode();
        return {};
    }

    sal_uInt64 getSizeBytes() { return maBitmapEx.GetSizeBytes(); }

    BitmapChecksum getChecksum() const { return maBitmapEx.GetChecksum(); }
};

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5
C=95 H=100 G=97

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.