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
3ddd6cb3
Kaydet (Commit)
3ddd6cb3
authored
Nis 11, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add an accessor to get the offset of a subsetted BitmapDevice
Change-Id: I8a4a588287a90c6953b367bb02e075ea58f13a96
üst
2729a77b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
bitmapdevice.hxx
basebmp/inc/basebmp/bitmapdevice.hxx
+7
-0
bitmapdevice.cxx
basebmp/source/bitmapdevice.cxx
+5
-0
No files found.
basebmp/inc/basebmp/bitmapdevice.hxx
Dosyayı görüntüle @
3ddd6cb3
...
...
@@ -92,6 +92,13 @@ public:
*/
bool
isTopDown
()
const
;
/** Query the offset from the start of the memory buffer
@ return the offset, which is (0,0) unless this is a subset
device.
*/
basegfx
::
B2IVector
getOffset
()
const
;
/** Query type of scanline memory format
*/
sal_Int32
getScanlineFormat
()
const
;
...
...
basebmp/source/bitmapdevice.cxx
Dosyayı görüntüle @
3ddd6cb3
...
...
@@ -1105,6 +1105,11 @@ bool BitmapDevice::isTopDown() const
return
mpImpl
->
mnScanlineStride
>=
0
;
}
basegfx
::
B2IVector
BitmapDevice
::
getOffset
()
const
{
return
basegfx
::
B2IVector
(
mpImpl
->
maBounds
.
getMinX
(),
mpImpl
->
maBounds
.
getMinY
());
}
sal_Int32
BitmapDevice
::
getScanlineFormat
()
const
{
return
mpImpl
->
mnScanlineFormat
;
...
...
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