vclxbitmap.cxx (b0724fc6) vclxbitmap.cxx (45fd3b9a)
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

--- 5 unchanged lines hidden (view full) ---

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
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

--- 5 unchanged lines hidden (view full) ---

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// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_toolkit.hxx"
26
22// MARKER(update_precomp.py): autogen include statement, do not remove
23#include "precompiled_toolkit.hxx"
24
27
28#include <toolkit/awt/vclxbitmap.hxx>
29#include <toolkit/helper/macros.hxx>
30#include <cppuhelper/typeprovider.hxx>
31#include <tools/stream.hxx>
32#include <rtl/memory.h>
33#include <rtl/uuid.h>
25#include <toolkit/awt/vclxbitmap.hxx>
26#include <toolkit/helper/macros.hxx>
27#include <cppuhelper/typeprovider.hxx>
28#include <tools/stream.hxx>
29#include <rtl/memory.h>
30#include <rtl/uuid.h>
31#include <vcl/dibtools.hxx>
34
35// ----------------------------------------------------
36// class VCLXBitmap
37// ----------------------------------------------------
38
39// ::com::sun::star::uno::XInterface
40::com::sun::star::uno::Any VCLXBitmap::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
41{

--- 24 unchanged lines hidden (view full) ---

66 return aSize;
67}
68
69::com::sun::star::uno::Sequence< sal_Int8 > VCLXBitmap::getDIB() throw(::com::sun::star::uno::RuntimeException)
70{
71 ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
72
73 SvMemoryStream aMem;
32
33// ----------------------------------------------------
34// class VCLXBitmap
35// ----------------------------------------------------
36
37// ::com::sun::star::uno::XInterface
38::com::sun::star::uno::Any VCLXBitmap::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
39{

--- 24 unchanged lines hidden (view full) ---

64 return aSize;
65}
66
67::com::sun::star::uno::Sequence< sal_Int8 > VCLXBitmap::getDIB() throw(::com::sun::star::uno::RuntimeException)
68{
69 ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
70
71 SvMemoryStream aMem;
74 aMem << maBitmap.GetBitmap();
72 WriteDIB(maBitmap.GetBitmap(), aMem, false, true);
75 return ::com::sun::star::uno::Sequence<sal_Int8>( (sal_Int8*) aMem.GetData(), aMem.Tell() );
76}
77
78::com::sun::star::uno::Sequence< sal_Int8 > VCLXBitmap::getMaskDIB() throw(::com::sun::star::uno::RuntimeException)
79{
80 ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
81
82 SvMemoryStream aMem;
73 return ::com::sun::star::uno::Sequence<sal_Int8>( (sal_Int8*) aMem.GetData(), aMem.Tell() );
74}
75
76::com::sun::star::uno::Sequence< sal_Int8 > VCLXBitmap::getMaskDIB() throw(::com::sun::star::uno::RuntimeException)
77{
78 ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
79
80 SvMemoryStream aMem;
83 aMem << maBitmap.GetMask();
81 WriteDIB(maBitmap.GetMask(), aMem, false, true);
84 return ::com::sun::star::uno::Sequence<sal_Int8>( (sal_Int8*) aMem.GetData(), aMem.Tell() );
85}
86
82 return ::com::sun::star::uno::Sequence<sal_Int8>( (sal_Int8*) aMem.GetData(), aMem.Tell() );
83}
84
87
88
89
85// eof