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
1d6b17d6
Kaydet (Commit)
1d6b17d6
authored
Mar 06, 2013
tarafından
Radek Doulik
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
do not crop the bitmap, it is already cropped. more debug output
Change-Id: Iac6cd20833e0de9d8135fc4a3a0c4e5884a0e9fa
üst
5fa81385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
emfplus.cxx
cppcanvas/source/mtfrenderer/emfplus.cxx
+6
-4
No files found.
cppcanvas/source/mtfrenderer/emfplus.cxx
Dosyayı görüntüle @
1d6b17d6
...
@@ -1481,6 +1481,9 @@ namespace cppcanvas
...
@@ -1481,6 +1481,9 @@ namespace cppcanvas
ReadPoint
(
rMF
,
x2
,
y2
,
flags
);
ReadPoint
(
rMF
,
x2
,
y2
,
flags
);
ReadPoint
(
rMF
,
x3
,
y3
,
flags
);
ReadPoint
(
rMF
,
x3
,
y3
,
flags
);
EMFP_DEBUG
(
printf
(
"EMF+ destination points: %f,%f %f,%f %f,%f
\n
"
,
x1
,
y1
,
x2
,
y2
,
x3
,
y3
));
EMFP_DEBUG
(
printf
(
"EMF+ destination rectangle: %f,%f %fx%f
\n
"
,
x1
,
y1
,
x2
-
x1
,
y3
-
y1
));
aDstPoint
=
Map
(
x1
,
y1
);
aDstPoint
=
Map
(
x1
,
y1
);
aDstSize
=
MapSize
(
x2
-
x1
,
y3
-
y1
);
aDstSize
=
MapSize
(
x2
-
x1
,
y3
-
y1
);
...
@@ -1491,6 +1494,8 @@ namespace cppcanvas
...
@@ -1491,6 +1494,8 @@ namespace cppcanvas
ReadRectangle
(
rMF
,
dx
,
dy
,
dw
,
dh
,
flags
&
0x4000
);
ReadRectangle
(
rMF
,
dx
,
dy
,
dw
,
dh
,
flags
&
0x4000
);
EMFP_DEBUG
(
printf
(
"EMF+ destination rectangle: %f,%f %fx%f
\n
"
,
dx
,
dy
,
dw
,
dh
));
aDstPoint
=
Map
(
dx
,
dy
);
aDstPoint
=
Map
(
dx
,
dy
);
aDstSize
=
MapSize
(
dw
,
dh
);
aDstSize
=
MapSize
(
dw
,
dh
);
...
@@ -1499,12 +1504,9 @@ namespace cppcanvas
...
@@ -1499,12 +1504,9 @@ namespace cppcanvas
if
(
bValid
)
{
if
(
bValid
)
{
BitmapEx
aBmp
(
image
.
graphic
.
GetBitmapEx
()
);
BitmapEx
aBmp
(
image
.
graphic
.
GetBitmapEx
()
);
const
Rectangle
aCropRect
(
::
vcl
::
unotools
::
pointFromB2DPoint
(
basegfx
::
B2DPoint
(
sx
,
sy
)),
::
vcl
::
unotools
::
sizeFromB2DSize
(
basegfx
::
B2DSize
(
sw
,
sh
)));
aBmp
.
Crop
(
aCropRect
);
Size
aSize
(
aBmp
.
GetSizePixel
()
);
Size
aSize
(
aBmp
.
GetSizePixel
()
);
EMFP_DEBUG
(
printf
(
"EMF+ bitmap size: %ldx%ld
\n
"
,
aSize
.
Width
(),
aSize
.
Height
()));
if
(
aSize
.
Width
()
>
0
&&
aSize
.
Height
()
>
0
)
{
if
(
aSize
.
Width
()
>
0
&&
aSize
.
Height
()
>
0
)
{
ActionSharedPtr
pBmpAction
(
ActionSharedPtr
pBmpAction
(
internal
::
BitmapActionFactory
::
createBitmapAction
(
internal
::
BitmapActionFactory
::
createBitmapAction
(
...
...
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