LibreOffice Module vcl (master)
1
include
vcl
graphic
GraphicMetadata.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*/
9
#ifndef INCLUDED_VCL_GRAPHIC_GRAPHICMETADATA_HXX
10
#define INCLUDED_VCL_GRAPHIC_GRAPHICMETADATA_HXX
11
// Info class for all supported file formats
12
enum class
GraphicFileFormat
13
{
14
NOT
= 0x0000,
15
BMP
= 0x0001,
16
GIF
= 0x0002,
17
JPG
= 0x0003,
18
PCD
= 0x0004,
19
PCX
= 0x0005,
20
PNG
= 0x0006,
21
TIF
= 0x0007,
22
XBM
= 0x0008,
23
XPM
= 0x0009,
24
PBM
= 0x000a,
25
PGM
= 0x000b,
26
PPM
= 0x000c,
27
RAS
= 0x000d,
28
TGA
= 0x000e,
29
PSD
= 0x000f,
30
EPS
= 0x0010,
31
WEBP
= 0x0011,
32
MOV
= 0x00e0,
33
PDF
= 0x00e1,
34
DXF
= 0x00f1,
35
MET
= 0x00f2,
36
PCT
= 0x00f3,
37
// retired SGF = 0x00f4,
38
SVM
= 0x00f5,
39
WMF
= 0x00f6,
40
// retired SGV = 0x00f7,
41
EMF
= 0x00f8,
42
SVG
= 0x00f9,
43
WMZ
= 0x00fa,
44
EMZ
= 0x00fb,
45
SVGZ
= 0x00fc,
46
APNG
= 0x00fd
47
};
48
struct
GraphicMetadata
49
{
50
Size
maPixSize
{};
51
Size
maLogSize
{};
52
std::optional<Size>
maPreferredLogSize
= std::nullopt;
53
std::optional<MapMode>
maPreferredMapMode
= std::nullopt;
54
sal_uInt16
mnBitsPerPixel
= 0;
55
sal_uInt16
mnPlanes
= 0;
56
GraphicFileFormat
mnFormat
=
GraphicFileFormat::NOT
;
57
sal_uInt8
mnNumberOfImageComponents
= 0;
58
bool
mbIsTransparent
=
false
;
59
bool
mbIsAlpha
=
false
;
60
};
61
#endif
62
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
GraphicFileFormat
GraphicFileFormat
Definition:
GraphicMetadata.hxx:13
GraphicFileFormat::NOT
@ NOT
GraphicFileFormat::MOV
@ MOV
GraphicFileFormat::SVGZ
@ SVGZ
GraphicFileFormat::XPM
@ XPM
GraphicFileFormat::PPM
@ PPM
GraphicFileFormat::EMZ
@ EMZ
GraphicFileFormat::RAS
@ RAS
GraphicFileFormat::TGA
@ TGA
GraphicFileFormat::XBM
@ XBM
GraphicFileFormat::TIF
@ TIF
GraphicFileFormat::PSD
@ PSD
GraphicFileFormat::EPS
@ EPS
GraphicFileFormat::SVG
@ SVG
GraphicFileFormat::PBM
@ PBM
GraphicFileFormat::APNG
@ APNG
GraphicFileFormat::PGM
@ PGM
GraphicFileFormat::WMZ
@ WMZ
Size
EMF
EMF
WMF
WMF
PNG
PNG
SotClipboardFormatId::BMP
@ BMP
SotClipboardFormatId::PDF
@ PDF
SvImageId::SVM
@ SVM
SvImageId::PCD
@ PCD
SvImageId::JPG
@ JPG
SvImageId::DXF
@ DXF
SvImageId::GIF
@ GIF
SvImageId::WEBP
@ WEBP
SvImageId::PCX
@ PCX
SvImageId::PCT
@ PCT
SvImageId::MET
@ MET
GraphicMetadata
Definition:
GraphicMetadata.hxx:49
GraphicMetadata::maPreferredLogSize
std::optional< Size > maPreferredLogSize
Definition:
GraphicMetadata.hxx:52
GraphicMetadata::mnPlanes
sal_uInt16 mnPlanes
Definition:
GraphicMetadata.hxx:55
GraphicMetadata::mnFormat
GraphicFileFormat mnFormat
Definition:
GraphicMetadata.hxx:56
GraphicMetadata::mnBitsPerPixel
sal_uInt16 mnBitsPerPixel
Definition:
GraphicMetadata.hxx:54
GraphicMetadata::mbIsTransparent
bool mbIsTransparent
Definition:
GraphicMetadata.hxx:58
GraphicMetadata::maPreferredMapMode
std::optional< MapMode > maPreferredMapMode
Definition:
GraphicMetadata.hxx:53
GraphicMetadata::maPixSize
Size maPixSize
Definition:
GraphicMetadata.hxx:50
GraphicMetadata::mnNumberOfImageComponents
sal_uInt8 mnNumberOfImageComponents
Definition:
GraphicMetadata.hxx:57
GraphicMetadata::mbIsAlpha
bool mbIsAlpha
Definition:
GraphicMetadata.hxx:59
GraphicMetadata::maLogSize
Size maLogSize
Definition:
GraphicMetadata.hxx:51
NOT
NOT
sal_uInt8
unsigned char sal_uInt8
Generated on Sun Jul 30 2023 04:34:48 for LibreOffice Module vcl (master) by
1.9.3