Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
592cacd5
Kaydet (Commit)
592cacd5
authored
Nis 22, 2002
tarafından
Kai Ahrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#98762#: added methods to create high contrast bitmaps
üst
91f158b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
22 deletions
+54
-22
bitmap.cxx
vcl/source/gdi/bitmap.cxx
+25
-2
bitmapex.cxx
vcl/source/gdi/bitmapex.cxx
+13
-2
impimage.cxx
vcl/source/gdi/impimage.cxx
+16
-18
No files found.
vcl/source/gdi/bitmap.cxx
Dosyayı görüntüle @
592cacd5
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: bitmap.cxx,v $
*
* $Revision: 1.
1.1.1
$
* $Revision: 1.
2
$
*
* last change: $Author:
hr $ $Date: 2000-09-18 17:05:37
$
* last change: $Author:
ka $ $Date: 2002-04-22 08:51:50
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -94,6 +94,9 @@
#ifndef _SV_SVAPP_HXX
#include <svapp.hxx>
#endif
#ifndef _SV_IMAGE_HXX
#include <image.hxx>
#endif
// ------------------------------------------------------------------
...
...
@@ -1767,6 +1770,26 @@ Bitmap Bitmap::CreateDisplayBitmap( OutputDevice* pDisplay )
// ------------------------------------------------------------------
Bitmap
Bitmap
::
GetColorTransformedBitmap
(
BmpColorMode
eColorMode
)
const
{
Bitmap
aRet
(
*
this
);
Color
*
pSrcColors
=
NULL
;
Color
*
pDstColors
=
NULL
;
ULONG
nColorCount
=
0
;
Image
::
GetColorTransformArrays
(
static_cast
<
ImageColorTransform
>
(
eColorMode
),
pSrcColors
,
pDstColors
,
nColorCount
);
if
(
nColorCount
&&
pSrcColors
&&
pDstColors
)
aRet
.
Replace
(
pSrcColors
,
pDstColors
,
nColorCount
);
delete
[]
pSrcColors
;
delete
[]
pDstColors
;
return
aRet
;
}
// ------------------------------------------------------------------
BOOL
Bitmap
::
CombineSimple
(
const
Bitmap
&
rMask
,
BmpCombine
eCombine
)
{
BitmapReadAccess
*
pMaskAcc
=
(
(
Bitmap
&
)
rMask
).
AcquireReadAccess
();
...
...
vcl/source/gdi/bitmapex.cxx
Dosyayı görüntüle @
592cacd5
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: bitmapex.cxx,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author:
jl $ $Date: 2001-03-20 10:03:56
$
* last change: $Author:
ka $ $Date: 2002-04-22 08:51:50
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -268,6 +268,17 @@ Bitmap BitmapEx::GetBitmap( const Color* pTransReplaceColor ) const
// ------------------------------------------------------------------
BitmapEx
BitmapEx
::
GetColorTransformedBitmapEx
(
BmpColorMode
eColorMode
)
const
{
BitmapEx
aRet
(
*
this
);
aRet
.
aBitmap
=
aBitmap
.
GetColorTransformedBitmap
(
eColorMode
);
return
aRet
;
}
// ------------------------------------------------------------------
Bitmap
BitmapEx
::
GetMask
()
const
{
Bitmap
aRet
(
aMask
);
...
...
vcl/source/gdi/impimage.cxx
Dosyayı görüntüle @
592cacd5
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: impimage.cxx,v $
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
* last change: $Author: ka $ $Date: 2002-0
3-05 13:20:07
$
* last change: $Author: ka $ $Date: 2002-0
4-22 08:51:50
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -512,19 +512,7 @@ void ImplImageBmp::Draw( USHORT nPos, OutputDevice* pOutDev,
aTmpMsk
.
Crop
(
aCropRect
);
if
(
nStyle
&
IMAGE_DRAW_COLORTRANSFORM
)
{
Color
*
pSrcColors
=
NULL
;
Color
*
pDstColors
=
NULL
;
ULONG
nColorCount
=
0
;
Image
::
GetColorTransformArrays
(
IMAGECOLORTRANSFORM_HIGHCONTRAST
,
pSrcColors
,
pDstColors
,
nColorCount
);
if
(
nColorCount
&&
pSrcColors
&&
pDstColors
)
aTmpBmp
.
Replace
(
pSrcColors
,
pDstColors
,
nColorCount
);
delete
[]
pSrcColors
;
delete
[]
pDstColors
;
}
aTmpBmp
=
aTmpBmp
.
GetColorTransformedBitmap
(
BMP_COLOR_HIGHCONTRAST
);
if
(
nStyle
&
(
IMAGE_DRAW_HIGHLIGHT
|
IMAGE_DRAW_DEACTIVE
)
)
{
...
...
@@ -619,10 +607,20 @@ void ImplImageBmp::Draw( USHORT nPos, OutputDevice* pOutDev,
bFastTransparent
=
bTmp
;
#endif
}
else
if
(
pSize
)
pOutDev
->
DrawBitmap
(
rPos
,
*
pSize
,
aPos
,
aSize
,
aBmpEx
.
GetBitmap
()
);
else
pOutDev
->
DrawBitmap
(
rPos
,
pOutDev
->
PixelToLogic
(
aSize
),
aPos
,
aSize
,
aBmpEx
.
GetBitmap
()
);
{
BitmapEx
aTmpBmpEx
;
if
(
nStyle
&
IMAGE_DRAW_COLORTRANSFORM
)
aTmpBmpEx
=
aBmpEx
.
GetColorTransformedBitmapEx
(
BMP_COLOR_HIGHCONTRAST
);
else
aTmpBmpEx
=
aBmpEx
;
if
(
pSize
)
pOutDev
->
DrawBitmap
(
rPos
,
*
pSize
,
aPos
,
aSize
,
aTmpBmpEx
.
GetBitmap
()
);
else
pOutDev
->
DrawBitmap
(
rPos
,
pOutDev
->
PixelToLogic
(
aSize
),
aPos
,
aSize
,
aTmpBmpEx
.
GetBitmap
()
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment