LibreOffice Module filter (master) 1
bitmap.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include "cgm.hxx"
23#include <vcl/bitmapex.hxx>
24#include <vector>
25
26class CGM;
27
29{
30 public:
37 sal_uInt32 mnScanSize; // bytes per line
39
41 double mndx, mndy;
43
44 sal_uInt32 mnX, mnY;
47
49 : mpBuf(nullptr)
50 , mpEndBuf(nullptr)
51 , mbStatus(false)
52 , mbVMirror(false)
54 , mnScanSize(0)
55 , mndx(0.0)
56 , mndy(0.0)
57 , mnOrientation(0.0)
58 , mnX(0)
59 , mnY(0)
62 { };
63};
64
66{
68 std::unique_ptr<CGMBitmapDescriptor>
71 std::vector<Color> ImplGeneratePalette( CGMBitmapDescriptor const & );
73 void ImplInsert( CGMBitmapDescriptor const & rSource, CGMBitmapDescriptor& rDest );
74public:
75 explicit CGMBitmap( CGM& rCGM );
76 ~CGMBitmap();
78 std::unique_ptr<CGMBitmap> GetNext();
79};
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt8 * mpBuf
Definition: bitmap.hxx:31
BitmapEx mxBitmap
Definition: bitmap.hxx:33
sal_uInt32 mnScanSize
Definition: bitmap.hxx:37
FloatPoint mnOrigin
Definition: bitmap.hxx:40
sal_uInt32 mnCompressionMode
Definition: bitmap.hxx:46
sal_uInt32 mnDstBitsPerPixel
Definition: bitmap.hxx:36
sal_uInt32 mnY
Definition: bitmap.hxx:44
FloatPoint mnR
Definition: bitmap.hxx:38
sal_uInt32 mnX
Definition: bitmap.hxx:44
FloatPoint mnQ
Definition: bitmap.hxx:38
double mnOrientation
Definition: bitmap.hxx:42
FloatPoint mnP
Definition: bitmap.hxx:38
sal_uInt8 * mpEndBuf
Definition: bitmap.hxx:32
tools::Long mnLocalColorPrecision
Definition: bitmap.hxx:45
std::unique_ptr< CGMBitmap > GetNext()
Definition: bitmap.cxx:421
std::vector< Color > ImplGeneratePalette(CGMBitmapDescriptor const &)
Definition: bitmap.cxx:262
void ImplGetBitmap(CGMBitmapDescriptor &)
Definition: bitmap.cxx:67
CGMBitmap(CGM &rCGM)
Definition: bitmap.cxx:37
void ImplInsert(CGMBitmapDescriptor const &rSource, CGMBitmapDescriptor &rDest)
Definition: bitmap.cxx:375
std::unique_ptr< CGMBitmapDescriptor > pCGMBitmapDescriptor
Definition: bitmap.hxx:69
CGM * mpCGM
Definition: bitmap.hxx:67
bool ImplGetDimensions(CGMBitmapDescriptor &)
Definition: bitmap.cxx:275
~CGMBitmap()
Definition: bitmap.cxx:44
CGMBitmapDescriptor * GetBitmap()
Definition: bitmap.hxx:77
Definition: cgm.hxx:39
long Long
unsigned char sal_uInt8