diff options
author | thb <thb@openoffice.org> | 2010-02-19 01:13:34 +0100 |
---|---|---|
committer | thb <thb@openoffice.org> | 2010-02-19 01:13:34 +0100 |
commit | b76532e1fbc6ac8d421308cac5a1d4fb239047db (patch) | |
tree | 64723a3b1ed7ecfdece457e7880d344566a90fa9 /canvas/inc/canvas | |
parent | 9f35771929499d655b248fdf8b6bd75e27caf017 (diff) |
Fix dxcanvas gradient glitches
* moved common gradient step size code
out to canvastools to share
* reverted back to manual polygon rendering
for anisotrophic rect and ellipse gradients
* fixed tilemode==none case for bitmap fills
Diffstat (limited to 'canvas/inc/canvas')
-rwxr-xr-x[-rw-r--r--] | canvas/inc/canvas/canvastools.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/canvas/inc/canvas/canvastools.hxx b/canvas/inc/canvas/canvastools.hxx index 345bcd9187ae..cada66cb9957 100644..100755 --- a/canvas/inc/canvas/canvastools.hxx +++ b/canvas/inc/canvas/canvastools.hxx @@ -69,6 +69,7 @@ namespace com { namespace sun { namespace star { namespace rendering struct ViewState; struct IntegerBitmapLayout; class XCanvas; + struct Texture; class XIntegerBitmapColorSpace; class XPolyPolygon2D; @@ -499,6 +500,18 @@ namespace canvas */ ::basegfx::B2DPolyPolygon getBoundMarksPolyPolygon( const ::basegfx::B2DRange& rRange ); + /** Calculate number of gradient "strips" to generate (takes + into account device resolution) + + @param nColorSteps + Maximal integer difference between all color stops, needed + for smooth gradient color differences + */ + int calcGradientStepCount( ::basegfx::B2DHomMatrix& rTotalTransform, + const ::com::sun::star::rendering::ViewState& viewState, + const ::com::sun::star::rendering::RenderState& renderState, + const ::com::sun::star::rendering::Texture& texture, + int nColorSteps ); /** A very simplistic map for ASCII strings and arbitrary value types. |