summaryrefslogtreecommitdiff
path: root/include/vcl/BitmapTools.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-12 15:29:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 07:28:33 +0100
commit2168d709805a847ac012ff87b06e081ca139d064 (patch)
tree76b8597bc1dd992cdc1b6c947f5d532c866e20f8 /include/vcl/BitmapTools.hxx
parentf9e611478f7b5d07a6d623ee04ed3a5ea6b1156e (diff)
use RawBitmap in PSDReader
part of making Bitmap an internal detail of vcl Change-Id: Icdb7a7474b19e304950fcf75ef2b85006b7755e9 Reviewed-on: https://gerrit.libreoffice.org/49664 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/BitmapTools.hxx')
-rw-r--r--include/vcl/BitmapTools.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx
index d5c3056e8738..f2cf5512dc6f 100644
--- a/include/vcl/BitmapTools.hxx
+++ b/include/vcl/BitmapTools.hxx
@@ -39,6 +39,11 @@ public:
mpData[ p++ ] = nColor.GetGreen();
mpData[ p ] = nColor.GetBlue();
}
+ Color GetPixel(long nY, long nX) const
+ {
+ long p = (nY * maSize.getWidth() + nX) * 3;
+ return Color( mpData[p], mpData[p+1], mpData[p+2]);
+ }
// so we don't accidentally leave any code in that uses palette color indexes
void SetPixel(long nY, long nX, BitmapColor nColor) = delete;
long Height() { return maSize.Height(); }