Lines Matching refs:Gdiplus
117 void setupGraphics( Gdiplus::Graphics& rGraphics ) in setupGraphics()
121 rGraphics.SetCompositingQuality( Gdiplus::CompositingQualityHighSpeed ); in setupGraphics()
123 rGraphics.SetInterpolationMode( Gdiplus::InterpolationModeBilinear ); in setupGraphics()
130 … rGraphics.SetPixelOffsetMode( Gdiplus::PixelOffsetModeHalf ); // Pixel center at (0.5, 0.5) etc. in setupGraphics()
135 rGraphics.SetSmoothingMode( Gdiplus::SmoothingModeAntiAlias ); in setupGraphics()
137 rGraphics.SetTextRenderingHint( Gdiplus::TextRenderingHintSystemDefault ); in setupGraphics()
138 rGraphics.SetPageUnit(Gdiplus::UnitPixel); in setupGraphics()
141 Gdiplus::Graphics* createGraphicsFromHDC(HDC aHDC) in createGraphicsFromHDC()
143 Gdiplus::Graphics* pRet = new Gdiplus::Graphics(aHDC); in createGraphicsFromHDC()
149 Gdiplus::Graphics* createGraphicsFromBitmap(const BitmapSharedPtr& rBitmap) in createGraphicsFromBitmap()
151 Gdiplus::Graphics* pRet = Gdiplus::Graphics::FromImage(rBitmap.get()); in createGraphicsFromBitmap()
157 …void gdiPlusMatrixFromB2DHomMatrix( Gdiplus::Matrix& rGdiplusMatrix, const ::basegfx::B2DHomMatrix… in gdiPlusMatrixFromB2DHomMatrix()
159 rGdiplusMatrix.SetElements( static_cast<Gdiplus::REAL>(rMatrix.get(0,0)), in gdiPlusMatrixFromB2DHomMatrix()
160 static_cast<Gdiplus::REAL>(rMatrix.get(1,0)), in gdiPlusMatrixFromB2DHomMatrix()
161 static_cast<Gdiplus::REAL>(rMatrix.get(0,1)), in gdiPlusMatrixFromB2DHomMatrix()
162 static_cast<Gdiplus::REAL>(rMatrix.get(1,1)), in gdiPlusMatrixFromB2DHomMatrix()
163 static_cast<Gdiplus::REAL>(rMatrix.get(0,2)), in gdiPlusMatrixFromB2DHomMatrix()
164 static_cast<Gdiplus::REAL>(rMatrix.get(1,2)) ); in gdiPlusMatrixFromB2DHomMatrix()
167 void gdiPlusMatrixFromAffineMatrix2D( Gdiplus::Matrix& rGdiplusMatrix, in gdiPlusMatrixFromAffineMatrix2D()
170 rGdiplusMatrix.SetElements( static_cast<Gdiplus::REAL>(rMatrix.m00), in gdiPlusMatrixFromAffineMatrix2D()
171 static_cast<Gdiplus::REAL>(rMatrix.m10), in gdiPlusMatrixFromAffineMatrix2D()
172 static_cast<Gdiplus::REAL>(rMatrix.m01), in gdiPlusMatrixFromAffineMatrix2D()
173 static_cast<Gdiplus::REAL>(rMatrix.m11), in gdiPlusMatrixFromAffineMatrix2D()
174 static_cast<Gdiplus::REAL>(rMatrix.m02), in gdiPlusMatrixFromAffineMatrix2D()
175 static_cast<Gdiplus::REAL>(rMatrix.m12) ); in gdiPlusMatrixFromAffineMatrix2D()
182 …inline Gdiplus::PointF implGdiPlusPointFromRealPoint2D( const ::com::sun::star::geometry::RealPoin… in implGdiPlusPointFromRealPoint2D()
184 return Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.X), in implGdiPlusPointFromRealPoint2D()
185 static_cast<Gdiplus::REAL>(rPoint.Y) ); in implGdiPlusPointFromRealPoint2D()
189 ::std::vector< Gdiplus::PointF >& rPoints, in graphicsPathFromB2DPolygon()
217 … rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()), in graphicsPathFromB2DPolygon()
218 … static_cast<Gdiplus::REAL>(rPoint.getY()) ); in graphicsPathFromB2DPolygon()
221 … rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rControlPointA.getX()), in graphicsPathFromB2DPolygon()
222 … static_cast<Gdiplus::REAL>(rControlPointA.getY()) ); in graphicsPathFromB2DPolygon()
225 … rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rControlPointB.getX()), in graphicsPathFromB2DPolygon()
226 … static_cast<Gdiplus::REAL>(rControlPointB.getY()) ); in graphicsPathFromB2DPolygon()
235 … rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()), in graphicsPathFromB2DPolygon()
236 … static_cast<Gdiplus::REAL>(rPoint.getY()) ); in graphicsPathFromB2DPolygon()
284 … rPoints[nCurrPoint] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()), in graphicsPathFromB2DPolygon()
285 … static_cast<Gdiplus::REAL>(rPoint.getY()) ); in graphicsPathFromB2DPolygon()
313 …Gdiplus::PointF gdiPlusPointFromRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& rPoint… in gdiPlusPointFromRealPoint2D()
318 Gdiplus::Rect gdiPlusRectFromIntegerRectangle2D( const geometry::IntegerRectangle2D& rRect ) in gdiPlusRectFromIntegerRectangle2D()
320 return Gdiplus::Rect( rRect.X1, in gdiPlusRectFromIntegerRectangle2D()
326 Gdiplus::RectF gdiPlusRectFFromRectangle2D( const geometry::RealRectangle2D& rRect ) in gdiPlusRectFFromRectangle2D()
328 return Gdiplus::RectF( static_cast<Gdiplus::REAL>(rRect.X1), in gdiPlusRectFFromRectangle2D()
329 static_cast<Gdiplus::REAL>(rRect.Y1), in gdiPlusRectFFromRectangle2D()
330 static_cast<Gdiplus::REAL>(rRect.X2 - rRect.X1), in gdiPlusRectFFromRectangle2D()
331 static_cast<Gdiplus::REAL>(rRect.Y2 - rRect.Y1) ); in gdiPlusRectFFromRectangle2D()
344 geometry::RealPoint2D realPoint2DFromGdiPlusPointF( const Gdiplus::PointF& rPoint ) in realPoint2DFromGdiPlusPointF()
349 geometry::RealRectangle2D realRectangle2DFromGdiPlusRectF( const Gdiplus::RectF& rRect ) in realRectangle2DFromGdiPlusRectF()
356 ::basegfx::B2DPoint b2dPointFromGdiPlusPointF( const Gdiplus::PointF& rPoint ) in b2dPointFromGdiPlusPointF()
361 ::basegfx::B2DRange b2dRangeFromGdiPlusRectF( const Gdiplus::RectF& rRect ) in b2dRangeFromGdiPlusRectF()
368 uno::Sequence< double > argbToDoubleSequence( const Gdiplus::ARGB& rColor ) in argbToDoubleSequence()
381 uno::Sequence< sal_Int8 > argbToIntSequence( const Gdiplus::ARGB& rColor ) in argbToIntSequence()
394 Gdiplus::ARGB sequenceToArgb( const uno::Sequence< sal_Int8 >& rColor ) in sequenceToArgb()
400 Gdiplus::ARGB aColor; in sequenceToArgb()
410 Gdiplus::ARGB sequenceToArgb( const uno::Sequence< double >& rColor ) in sequenceToArgb()
416 Gdiplus::ARGB aColor; in sequenceToArgb()
438 GraphicsPathSharedPtr pRes( new Gdiplus::GraphicsPath() ); in graphicsPathFromRealPoint2DSequence()
439 ::std::vector< Gdiplus::PointF > aPoints; in graphicsPathFromRealPoint2DSequence()
466 GraphicsPathSharedPtr pRes( new Gdiplus::GraphicsPath() ); in graphicsPathFromB2DPolygon()
467 ::std::vector< Gdiplus::PointF > aPoints; in graphicsPathFromB2DPolygon()
476 GraphicsPathSharedPtr pRes( new Gdiplus::GraphicsPath() ); in graphicsPathFromB2DPolyPolygon()
477 ::std::vector< Gdiplus::PointF > aPoints; in graphicsPathFromB2DPolyPolygon()
509 Gdiplus::PointF aPoint; in drawGdiPlusBitmap()
510 return (Gdiplus::Ok == rGraphics->DrawImage( rBitmap.get(), in drawGdiPlusBitmap()
519 Gdiplus::Bitmap::FromBITMAPINFO( &rBI, in drawDIBits()
529 BitmapSharedPtr pBitmap( new Gdiplus::Bitmap( rRawRGBAData.mnWidth, in drawRGBABits()
533 Gdiplus::BitmapData aBmpData; in drawRGBABits()
540 const Gdiplus::Rect aRect( 0,0,aBmpData.Width,aBmpData.Height ); in drawRGBABits()
541 if( Gdiplus::Ok != pBitmap->LockBits( &aRect, in drawRGBABits()
542 … Gdiplus::ImageLockModeWrite | Gdiplus::ImageLockModeUserInputBuf, in drawRGBABits()
579 pBitmap.reset( new Gdiplus::Bitmap( aBmpSize.Width, in bitmapFromXBitmap()
589 pBitmap.reset( new Gdiplus::Bitmap( aBmpSize.Width, in bitmapFromXBitmap()
617 void setModulateImageAttributes( Gdiplus::ImageAttributes& o_rAttr, in setModulateImageAttributes()
626 Gdiplus::ColorMatrix aColorMatrix; in setModulateImageAttributes()
628 aColorMatrix.m[0][0] = static_cast<Gdiplus::REAL>(nRedModulation); in setModulateImageAttributes()
635 aColorMatrix.m[1][1] = static_cast<Gdiplus::REAL>(nGreenModulation); in setModulateImageAttributes()
642 aColorMatrix.m[2][2] = static_cast<Gdiplus::REAL>(nBlueModulation); in setModulateImageAttributes()
649 aColorMatrix.m[3][3] = static_cast<Gdiplus::REAL>(nAlphaModulation); in setModulateImageAttributes()
659 Gdiplus::ColorMatrixFlagsDefault, in setModulateImageAttributes()
660 Gdiplus::ColorAdjustTypeDefault ); in setModulateImageAttributes()