diff options
Diffstat (limited to 'canvas/source/directx/dx_surfacebitmap.cxx')
-rw-r--r-- | canvas/source/directx/dx_surfacebitmap.cxx | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/canvas/source/directx/dx_surfacebitmap.cxx b/canvas/source/directx/dx_surfacebitmap.cxx index c45d5af9fa79..e61ad2060135 100644 --- a/canvas/source/directx/dx_surfacebitmap.cxx +++ b/canvas/source/directx/dx_surfacebitmap.cxx @@ -44,9 +44,9 @@ namespace dxcanvas { namespace { - ////////////////////////////////////////////////////////////////////////////////// + // DXColorBuffer - ////////////////////////////////////////////////////////////////////////////////// + struct DXColorBuffer : public canvas::IColorBuffer { @@ -129,9 +129,9 @@ namespace dxcanvas return canvas::IColorBuffer::FMT_X8R8G8B8; } - ////////////////////////////////////////////////////////////////////////////////// + // GDIColorBuffer - ////////////////////////////////////////////////////////////////////////////////// + struct GDIColorBuffer : public canvas::IColorBuffer { @@ -208,9 +208,9 @@ namespace dxcanvas } } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::DXSurfaceBitmap - ////////////////////////////////////////////////////////////////////////////////// + DXSurfaceBitmap::DXSurfaceBitmap( const ::basegfx::B2IVector& rSize, const canvas::ISurfaceProxyManagerSharedPtr& rMgr, @@ -231,18 +231,18 @@ namespace dxcanvas init(); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::getSize - ////////////////////////////////////////////////////////////////////////////////// + ::basegfx::B2IVector DXSurfaceBitmap::getSize() const { return maSize; } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::init - ////////////////////////////////////////////////////////////////////////////////// + void DXSurfaceBitmap::init() { @@ -278,9 +278,9 @@ namespace dxcanvas mpSurfaceProxy = mpSurfaceManager->createSurfaceProxy(mpColorBuffer); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::resize - ////////////////////////////////////////////////////////////////////////////////// + bool DXSurfaceBitmap::resize( const ::basegfx::B2IVector& rSize ) { @@ -293,9 +293,9 @@ namespace dxcanvas return true; } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::clear - ////////////////////////////////////////////////////////////////////////////////// + void DXSurfaceBitmap::clear() { @@ -305,18 +305,18 @@ namespace dxcanvas pGraphics->Clear( transColor ); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::hasAlpha - ////////////////////////////////////////////////////////////////////////////////// + bool DXSurfaceBitmap::hasAlpha() const { return mbAlpha; } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::getGraphics - ////////////////////////////////////////////////////////////////////////////////// + GraphicsSharedPtr DXSurfaceBitmap::getGraphics() { @@ -332,9 +332,9 @@ namespace dxcanvas return createSurfaceGraphics(mpSurface); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::getBitmap - ////////////////////////////////////////////////////////////////////////////////// + BitmapSharedPtr DXSurfaceBitmap::getBitmap() const { @@ -386,9 +386,9 @@ namespace dxcanvas return pResult; } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::draw - ////////////////////////////////////////////////////////////////////////////////// + bool DXSurfaceBitmap::draw( double fAlpha, const ::basegfx::B2DPoint& rPos, @@ -404,9 +404,9 @@ namespace dxcanvas return mpSurfaceProxy->draw( fAlpha, rPos, rClipPoly, rTransform ); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::draw - ////////////////////////////////////////////////////////////////////////////////// + bool DXSurfaceBitmap::draw( double fAlpha, const ::basegfx::B2DPoint& rPos, @@ -422,9 +422,9 @@ namespace dxcanvas return mpSurfaceProxy->draw( fAlpha, rPos, rArea, rTransform ); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::draw - ////////////////////////////////////////////////////////////////////////////////// + bool DXSurfaceBitmap::draw( double fAlpha, const ::basegfx::B2DPoint& rPos, @@ -439,9 +439,9 @@ namespace dxcanvas return mpSurfaceProxy->draw( fAlpha, rPos, rTransform ); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::draw - ////////////////////////////////////////////////////////////////////////////////// + bool DXSurfaceBitmap::draw( const ::basegfx::B2IRange& rArea ) { @@ -460,9 +460,9 @@ namespace dxcanvas aTransform); } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::imageDebugger - ////////////////////////////////////////////////////////////////////////////////// + #if defined(DX_DEBUG_IMAGES) # if OSL_DEBUG_LEVEL > 0 void DXSurfaceBitmap::imageDebugger() @@ -494,9 +494,9 @@ namespace dxcanvas # endif #endif - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::getData - ////////////////////////////////////////////////////////////////////////////////// + uno::Sequence< sal_Int8 > DXSurfaceBitmap::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/, const geometry::IntegerRectangle2D& rect ) @@ -582,9 +582,9 @@ namespace dxcanvas } } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::setData - ////////////////////////////////////////////////////////////////////////////////// + void DXSurfaceBitmap::setData( const uno::Sequence< sal_Int8 >& data, const rendering::IntegerBitmapLayout& /*bitmapLayout*/, @@ -666,9 +666,9 @@ namespace dxcanvas mbIsSurfaceDirty = true; } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::setPixel - ////////////////////////////////////////////////////////////////////////////////// + void DXSurfaceBitmap::setPixel( const uno::Sequence< sal_Int8 >& color, const rendering::IntegerBitmapLayout& /*bitmapLayout*/, @@ -730,9 +730,9 @@ namespace dxcanvas mbIsSurfaceDirty = true; } - ////////////////////////////////////////////////////////////////////////////////// + // DXSurfaceBitmap::getPixel - ////////////////////////////////////////////////////////////////////////////////// + uno::Sequence< sal_Int8 > DXSurfaceBitmap::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/, const geometry::IntegerPoint2D& pos ) |