/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* 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/.
*/
#ifndef INCLUDED_VCL_GRAPHIC_GRAPHICMETADATA_HXX
#define INCLUDED_VCL_GRAPHIC_GRAPHICMETADATA_HXX
#include <tools/gen.hxx>
#include <vcl/mapmod.hxx>
#include <optional>
const sal_Int32 DefaultPDFJPEGQuality = 90 ;
const sal_Int32 DefaultPDFImageDPI = 300 ;
// Info class for all supported file formats
enum class GraphicFileFormat
{
NOT = 0 x0000,
BMP = 0 x0001,
GIF = 0 x0002,
JPG = 0 x0003,
PCD = 0 x0004,
PCX = 0 x0005,
PNG = 0 x0006,
TIF = 0 x0007,
XBM = 0 x0008,
XPM = 0 x0009,
PBM = 0 x000a,
PGM = 0 x000b,
PPM = 0 x000c,
RAS = 0 x000d,
TGA = 0 x000e,
PSD = 0 x000f,
EPS = 0 x0010,
WEBP = 0 x0011,
MOV = 0 x00e0,
PDF = 0 x00e1,
DXF = 0 x00f1,
MET = 0 x00f2,
PCT = 0 x00f3,
// retired SGF = 0x00f4,
SVM = 0 x00f5,
WMF = 0 x00f6,
// retired SGV = 0x00f7,
EMF = 0 x00f8,
SVG = 0 x00f9,
WMZ = 0 x00fa,
EMZ = 0 x00fb,
SVGZ = 0 x00fc,
APNG = 0 x00fd
};
struct GraphicMetadata
{
Size maPixSize{};
Size maLogSize{};
std::optional<Size> maPreferredLogSize = std::nullopt;
std::optional<MapMode> maPreferredMapMode = std::nullopt;
sal_uInt16 mnBitsPerPixel = 0 ;
sal_uInt16 mnPlanes = 0 ;
GraphicFileFormat mnFormat = GraphicFileFormat::NOT ;
sal_uInt8 mnNumberOfImageComponents = 0 ;
bool mbIsTransparent = false ;
bool mbIsAlpha = false ;
bool mbIsAnimated = false ;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Messung V0.5 in Prozent C=94 H=97 G=95
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland