summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/scanner/sanedlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index 2f9d710a41e7..0a7bdb2565c3 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -75,7 +75,7 @@ private:
enum DragDirection { TopLeft, Top, TopRight, Right, BottomRight, Bottom,
BottomLeft, Left };
- Bitmap maPreviewBitmap;
+ BitmapEx maPreviewBitmapEx;
tools::Rectangle maPreviewRect;
Point maTopLeft, maBottomRight;
Point maMinTopLeft, maMaxBottomRight;
@@ -193,7 +193,7 @@ public:
void UpdatePreviewBounds();
void SetBitmap(SvStream &rStream)
{
- ReadDIB(maPreviewBitmap, rStream, true);
+ ReadDIBBitmapEx(maPreviewBitmapEx, rStream, true);
}
virtual Size GetOptimalSize() const override
{
@@ -928,7 +928,7 @@ void ScanPreview::UpdatePreviewBounds()
}
else
{
- Size aBMSize( maPreviewBitmap.GetSizePixel() );
+ Size aBMSize( maPreviewBitmapEx.GetSizePixel() );
if( aBMSize.Width() > aBMSize.Height() && aBMSize.Width() )
{
int nVHeight = (maBottomRight.X() - maTopLeft.X()) * aBMSize.Height() / aBMSize.Width();
@@ -956,7 +956,7 @@ void ScanPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectang
Size(PREVIEW_WIDTH, PREVIEW_HEIGHT)));
rRenderContext.SetMapMode(MapMode(MapUnit::MapPixel));
// check for sane values
- rRenderContext.DrawBitmap(maPreviewRect.TopLeft(), maPreviewRect.GetSize(), maPreviewBitmap);
+ rRenderContext.DrawBitmapEx(maPreviewRect.TopLeft(), maPreviewRect.GetSize(), maPreviewBitmapEx);
mbDragDrawn = false;
DrawDrag(rRenderContext);