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