diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-01 17:36:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-02 07:44:37 +0100 |
commit | 61064b56bf926aea5a9a7e2dfdead34277217090 (patch) | |
tree | 54873a8bee701b2169e08da0cba3ce122d7bd624 /include | |
parent | d60d2973eca003b46860bf5effe9d0e638268f94 (diff) |
avmedia: move BitmapWriteAccess inside Bitmap
part of a larger project to hide BitmapWriteAccess inside Bitmap
Change-Id: Ia46c12b3297107892a6236633c11ca9ada6edbd4
Reviewed-on: https://gerrit.libreoffice.org/49106
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/bitmap.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 2f74b71dd7b3..04cc0cbca83d 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -650,6 +650,16 @@ public: BmpFilter eFilter, const BmpFilterParam* pFilterParam = nullptr ); + /** Copy block of image data into the bitmap. + Assumes that the Bitmap has been constructed with the desired size. + + @param pData + The block of data to copy + @param nStride + The number of bytes in a scanline, must >= width + */ + void SetToData( sal_uInt8 const *pData, sal_Int32 nStride ); + public: SAL_DLLPRIVATE void ImplMakeUnique(); |