xref: /trunk/main/vcl/inc/salbmp.hxx (revision 161f4cd1)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SV_SALBMP_HXX
25 #define _SV_SALBMP_HXX
26 
27 #ifndef _TL_GEN_HXX
28 #include <tools/gen.hxx>
29 #endif
30 #include <vcl/dllapi.h>
31 
32 struct BitmapBuffer;
33 class SalGraphics;
34 class BitmapPalette;
35 struct BitmapSystemData;
36 
37 class VCL_PLUGIN_PUBLIC SalBitmap
38 {
39 public:
SalBitmap()40     SalBitmap() {}
41     virtual ~SalBitmap();
42 
43     virtual bool			Create( const Size& rSize,
44                                     sal_uInt16 nBitCount,
45                                     const BitmapPalette& rPal ) = 0;
46 	virtual bool			Create( const SalBitmap& rSalBmp ) = 0;
47 	virtual bool			Create( const SalBitmap& rSalBmp,
48                                     SalGraphics* pGraphics ) = 0;
49 	virtual bool			Create( const SalBitmap& rSalBmp,
50                                     sal_uInt16 nNewBitCount ) = 0;
51 	virtual void			Destroy() = 0;
52 	virtual Size			GetSize() const = 0;
53 	virtual sal_uInt16			GetBitCount() const = 0;
54 
55 	virtual BitmapBuffer*	AcquireBuffer( bool bReadOnly ) = 0;
56 	virtual void			ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly ) = 0;
57     virtual bool            GetSystemData( BitmapSystemData& rData ) = 0;
58 
59 };
60 
61 #endif
62