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
721fb110
Kaydet (Commit)
721fb110
authored
Kas 18, 2014
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcldemo: render more small scaled page-border alikes
Change-Id: I2605175e7ee66d3da5e41497baa4178074830e99
üst
47659b47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
20 deletions
+11
-20
vcldemo.cxx
vcl/workben/vcldemo.cxx
+11
-20
No files found.
vcl/workben/vcldemo.cxx
Dosyayı görüntüle @
721fb110
...
...
@@ -458,28 +458,19 @@ public:
aBlockColor
.
Erase
(
COL_RED
);
BitmapEx
aShadowStretch
=
BitmapEx
(
aBlockColor
,
aAlphaMask
);
#ifdef DEBUG
{
// before - the pristine <n>x1 image
SvFileStream
aStream
(
"/tmp/myshadow.png"
,
STREAM_WRITE
);
vcl
::
PNGWriter
aWriter
(
aShadowStretch
);
aWriter
.
Write
(
aStream
);
}
#endif
Point
aRenderPt
(
r
.
TopLeft
());
long
aSizes
[]
=
{
200
,
100
,
200
,
100
,
50
,
5
,
2
};
// and yes - we really do this in the page border rendering code ...
aShadowStretch
.
Scale
(
Size
(
aShadowStretch
.
GetSizePixel
().
Width
(),
50
),
BMP_SCALE_FAST
);
aShadowStretch
.
Scale
(
Size
(
aShadowStretch
.
GetSizePixel
().
Width
(),
800
),
BMP_SCALE_FAST
);
#ifdef DEBUG
{
// after the corrupted image full of fluff ...
SvFileStream
aStream
(
"/tmp/myshadow-50.png"
,
STREAM_WRITE
);
vcl
::
PNGWriter
aWriter
(
aShadowStretch
);
aWriter
.
Write
(
aStream
);
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aSizes
);
i
++
)
{
aShadowStretch
.
Scale
(
Size
(
aShadowStretch
.
GetSizePixel
().
Width
(),
aSizes
[
i
]),
BMP_SCALE_FAST
);
rDev
.
DrawBitmapEx
(
aRenderPt
,
aShadowStretch
);
aRenderPt
.
Move
(
aShadowStretch
.
GetSizePixel
().
Width
()
+
4
,
0
);
}
#endif
Point
aRenderPt
(
r
.
Center
());
aRenderPt
.
Move
(
-
nSlice
-
1
,
0
);
rDev
.
DrawBitmapEx
(
aRenderPt
,
aShadowStretch
);
AlphaMask
aWholeMask
(
aPageShadowMask
.
GetBitmap
());
aBlockColor
=
Bitmap
(
aPageShadowMask
.
GetSizePixel
(),
24
);
...
...
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