[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kpdf_annotations: kdegraphics/kpdf/ui (silent)
From: Enrico Ros <rosenric () dei ! unipd ! it>
Date: 2005-04-24 10:03:26
Message-ID: 20050424100326.4EDBF65C () office ! kde ! org
[Download RAW message or body]
CVS commit by eros:
CVS_SILENT sync comments
M +11 -1 pagepainter.cpp 1.7.2.15
--- kdegraphics/kpdf/ui/pagepainter.cpp #1.7.2.14:1.7.2.15
@@ -666,4 +666,6 @@ void PagePainter::drawShapeOnImage(
for ( int i = 1; i < pointsNumber; i++ )
path.line_to( normPath[ i ].x * fImageWidth, normPath[ i ].y * fImageHeight );
+ //path.curve4( normPath[ i ].x * fImageWidth + 2, normPath[ i ].y * fImageHeight - 2,
+ // normPath[ i ].x * fImageWidth, normPath[ i ].y * fImageHeight );
if ( closeShape )
path.close_polygon();
@@ -690,5 +692,5 @@ void PagePainter::drawShapeOnImage(
}
for( int y = 0; y < imageHeight; y++ )
- pixels.blend_color_hspan( 0, y, imageWidth, span, 0, (255*y)/imageHeight );
+ pixels.blend_color_hspan( 0, y, imageWidth, span, 0, (123*y)/imageHeight );
#endif
@@ -709,5 +711,13 @@ void PagePainter::drawShapeOnImage(
const QColor & penColor = pen.color();
render.color( agg::rgba8( penColor.red(), penColor.green(), penColor.blue() ) );
+#if 0
+ // BSPLINE curve over path
+ typedef agg::conv_bspline< agg::path_storage > conv_bspline_type;
+ conv_bspline_type bspline( path );
+ bspline.interpolation_step( 0.2 );
+ agg::conv_stroke< conv_bspline_type > strokedPath( bspline );
+#else
agg::conv_stroke< agg::path_storage > strokedPath( path );
+#fi
strokedPath.width( penWidth );
rasterizer.add_path( strokedPath );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic