Kaydet (Commit) 3dbed9ac authored tarafından Chris Sherlock's avatar Chris Sherlock

Rearrange VCL OutputDevice bitmap functions

Change-Id: I9bb6a5d123c35d3de2d2fa7b8a427c92f599afd7
üst d0ad5518
...@@ -745,11 +745,11 @@ protected: ...@@ -745,11 +745,11 @@ protected:
virtual void CopyAreaFinal( SalTwoRect& aPosAry, sal_uInt32 nFlags); virtual void CopyAreaFinal( SalTwoRect& aPosAry, sal_uInt32 nFlags);
public:
/** @name Bitmap functions /** @name Bitmap functions
*/ */
///@{ ///@{
public:
/** @overload /** @overload
void DrawBitmap( void DrawBitmap(
const Point& rDestPt, const Point& rDestPt,
...@@ -846,19 +846,6 @@ public: ...@@ -846,19 +846,6 @@ public:
*/ */
BitmapEx GetBitmapEx( const Point& rSrcPt, const Size& rSize ) const; BitmapEx GetBitmapEx( const Point& rSrcPt, const Size& rSize ) const;
/** Retrieve downsampled and cropped bitmap
@attention This method ignores negative rDstSz values, thus
mirroring must happen outside this method (e.g. in DrawBitmap)
*/
Bitmap GetDownsampledBitmap(
const Size& rDstSz,
const Point& rSrcPt,
const Size& rSrcSz,
const Bitmap& rBmp,
long nMaxBmpDPIX,
long nMaxBmpDPIY );
/** Draw BitmapEx transformed /** Draw BitmapEx transformed
...@@ -877,6 +864,13 @@ public: ...@@ -877,6 +864,13 @@ public:
protected: protected:
virtual void DrawDeviceBitmap(
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
BitmapEx& rBitmapEx );
virtual void ScaleBitmap ( Bitmap &rBmp, SalTwoRect &rPosAry );
/** Transform and draw a bitmap directly /** Transform and draw a bitmap directly
@param aFullTransform The B2DHomMatrix used for the transformation @param aFullTransform The B2DHomMatrix used for the transformation
...@@ -904,12 +898,6 @@ protected: ...@@ -904,12 +898,6 @@ protected:
basegfx::B2DRange &aVisibleRange, basegfx::B2DRange &aVisibleRange,
double &fMaximumArea); double &fMaximumArea);
virtual void ScaleBitmap ( Bitmap &rBmp, SalTwoRect &rPosAry );
virtual void DrawDeviceBitmap(
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
BitmapEx& rBitmapEx );
private: private:
SAL_DLLPRIVATE void DrawAlphaBitmap( SAL_DLLPRIVATE void DrawAlphaBitmap(
...@@ -946,12 +934,27 @@ private: ...@@ -946,12 +934,27 @@ private:
const sal_Int32 nDstWidth, const sal_Int32 nDstWidth,
const long* pMapX, const long* pMapX,
const long* pMapY ); const long* pMapY );
/** Retrieve downsampled and cropped bitmap
@attention This method ignores negative rDstSz values, thus
mirroring must happen outside this method (e.g. in DrawBitmap)
*/
Bitmap GetDownsampledBitmap(
const Size& rDstSz,
const Point& rSrcPt,
const Size& rSrcSz,
const Bitmap& rBmp,
long nMaxBmpDPIX,
long nMaxBmpDPIY );
///@} ///@}
public:
/** @name Curved shape functions /** @name Curved shape functions
*/ */
///@{ ///@{
public:
void DrawEllipse( const Rectangle& rRect ); void DrawEllipse( const Rectangle& rRect );
void DrawArc( const Rectangle& rRect, void DrawArc( const Rectangle& rRect,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment