11#ifndef INCLUDED_VCL_OUTDEVTESTS_HXX
12#define INCLUDED_VCL_OUTDEVTESTS_HXX
56 sal_Int32 nStartY, sal_Int32 nEndY, std::vector<Color>
const & rExpected);
78 Point& rHorizontalLinePoint1,
Point& rHorizontalLinePoint2,
79 Point& rVerticalLinePoint1,
Point& rVerticalLinePoint2,
80 Point& rDiagonalLinePoint1,
Point& rDiagonalLinePoint2);
114 bool isBitmapGreyScale =
false);
116 bool isBitmapGreyScale =
false);
static TestResult checkDrawOutDevSelf(Bitmap &rBitmap)
Bitmap setupDrawOutDevSelf()
Bitmap setupDrawOutDevScaledClipped()
static TestResult checkDrawOutDevScaledClipped(Bitmap &rBitmap)
static TestResult checkDrawOutDev(Bitmap &rBitmap)
OutputDeviceTestAnotherOutDev()=default
static TestResult checkXOR(Bitmap &rBitmap)
static TestResult checkBitmapExWithAlpha(Bitmap &rBitmap)
Bitmap setupDrawMask(vcl::PixelFormat aBitmapFormat)
Bitmap setupDrawBitmapExWithAlpha(vcl::PixelFormat aBitmapFormat)
Bitmap setupDrawBitmap(vcl::PixelFormat aBitmapFormat, bool isBitmapGreyScale=false)
OutputDeviceTestBitmap()=default
static TestResult checkBlend(const BitmapEx &rBitmap)
static TestResult checkTransformedBitmap8bppGreyScale(Bitmap &rBitmap)
Bitmap setupDrawTransformedBitmap(vcl::PixelFormat aBitmapFormat, bool isBitmapGreyScale=false)
BitmapEx setupDrawBlend(vcl::PixelFormat aBitmapFormat)
static TestResult checkComplexTransformedBitmap(Bitmap &rBitmap)
Bitmap setupComplexDrawTransformedBitmap(vcl::PixelFormat aBitmapFormat, bool isBitmapGreyScale=false)
static TestResult checkMask(Bitmap &rBitmap)
static TestResult checkTransformedBitmap(Bitmap &rBitmap)
Bitmap setupClipRectangle()
Bitmap setupClipPolyPolygon()
Bitmap setupClipB2DPolyPolygon()
static TestResult checkClip(Bitmap &rBitmap)
Bitmap setupClipPolygon()
Common subclass for output device rendering tests.
static TestResult checkClosedBezier(Bitmap &rBitmap)
static TestResult checkLinearGradient(Bitmap &bitmap)
static TestResult checkOpenBezier(Bitmap &rBitmap)
static TestResult checkBezier(Bitmap &rBitmap)
static TestResult checkEvenOddRuleInIntersectingRecs(Bitmap &rBitmap)
static tools::Polygon createDropShapePolygon()
static TestResult checkFilledRectangle(Bitmap &rBitmap, bool useLineColor)
static TestResult checkTextLocation(Bitmap &rBitmap)
static tools::Rectangle alignToCenter(tools::Rectangle aRect1, tools::Rectangle aRect2)
static TestResult checkDropShape(Bitmap &rBitmap, bool aEnableAA=false)
static basegfx::B2DPolygon createOpenPolygon(const tools::Rectangle &rRect, int nOffset=4)
static TestResult checkRectangle(Bitmap &rBitmap, int aLayerNumber, Color aExpectedColor)
static TestResult checkInvertN50Rectangle(Bitmap &aBitmap)
static TestResult checkRectangleAA(Bitmap &rBitmap)
static TestResult checkAxialGradient(Bitmap &bitmap)
static const Color constFillColor
static TestResult checkInvertRectangle(Bitmap &rBitmap)
static TestResult checkChecker(Bitmap &rBitmap, sal_Int32 nStartX, sal_Int32 nEndX, sal_Int32 nStartY, sal_Int32 nEndY, std::vector< Color > const &rExpected)
static TestResult checkLineJoinMiter(Bitmap &rBitmap)
static TestResult checkFilled(Bitmap &rBitmap, tools::Rectangle aRectangle, Color aExpectedColor)
static basegfx::B2DPolygon createOpenBezier()
tools::Rectangle maVDRectangle
static TestResult checkLinearGradientIntensity(Bitmap &bitmap)
static TestResult checkLineJoinBevel(Bitmap &rBitmap)
static TestResult checkOpenPolygon(Bitmap &rBitmap, bool aEnableAA=false)
static TestResult checkLinearGradientAngled(Bitmap &bitmap)
static TestResult checkInvertTrackFrameRectangle(Bitmap &aBitmap)
static TestResult checkLineCapRound(Bitmap &rBitmap)
static TestResult checkFilledAsymmetricalDropShape(Bitmap &rBitmap)
static TestResult checkLineJoinRound(Bitmap &rBitmap)
static const Color constBackgroundColor
static TestResult checkRectangles(Bitmap &rBitmap, bool aEnableAA=false)
static TestResult checkLineJoinNone(Bitmap &rBitmap)
static TestResult checkRadialGradientOfs(Bitmap &bitmap)
static tools::Polygon createClosedBezierLoop(const tools::Rectangle &rRect)
static TestResult checkLineJoin(Bitmap &rBitmap, basegfx::B2DLineJoin lineJoin)
static TestResult checkHalfEllipse(Bitmap &rBitmap, bool aEnableAA=false)
static TestResult checkLinearGradientBorder(Bitmap &bitmap)
static TestResult checkLineCap(Bitmap &rBitmap, css::drawing::LineCap lineCap)
static TestResult checkLineCapButt(Bitmap &rBitmap)
OUString getRenderBackendName() const
void initialSetup(tools::Long nWidth, tools::Long nHeight, Color aColor, bool bEnableAA=false, bool bAlphaVirtualDevice=false)
static TestResult checkAALines(Bitmap &rBitmap)
static TestResult checkRectangles(Bitmap &rBitmap, std::vector< Color > &aExpectedColors)
static TestResult checkRectangle(Bitmap &rBitmap)
static TestResult checkDiamond(Bitmap &rBitmap)
static void createHorizontalVerticalDiagonalLinePoints(tools::Rectangle rRect, Point &rHorizontalLinePoint1, Point &rHorizontalLinePoint2, Point &rVerticalLinePoint1, Point &rVerticalLinePoint2, Point &rDiagonalLinePoint1, Point &rDiagonalLinePoint2)
static void createDiamondPoints(tools::Rectangle rRect, int nOffset, Point &rPoint1, Point &rPoint2, Point &rPoint3, Point &rPoint4)
static const Color constLineColor
ScopedVclPtr< VirtualDevice > mpVirtualDevice
static TestResult checkRadialGradient(Bitmap &bitmap)
static basegfx::B2DPolygon createHalfEllipsePolygon()
static TestResult checkLines(Bitmap &rBitmap)
static TestResult checkLinearGradientSteps(Bitmap &bitmap)
static TestResult checkIntersectingRecs(Bitmap &rBitmap, int aLayerNumber, Color aExpectedColor)
static TestResult checkLineCapSquare(Bitmap &rBitmap)
Bitmap setupLinearGradient()
Bitmap setupLinearGradientSteps()
Bitmap setupLinearGradientAngled()
Bitmap setupLinearGradientBorder()
Bitmap setupLinearGradientIntensity()
OutputDeviceTestGradient()=default
Bitmap setupRadialGradient()
Bitmap setupAxialGradient()
Bitmap setupRadialGradientOfs()
Bitmap setupLineJoinMiter()
Bitmap setupLineCapSquare()
Bitmap setupLineJoinRound()
Bitmap setupLineJoin(basegfx::B2DLineJoin lineJoin)
Bitmap setupLineCapRound()
Bitmap setupRectangleOnSize1028()
Bitmap setupLineJoinBevel()
Bitmap setupLineCap(css::drawing::LineCap lineCap)
Bitmap setupLineCapButt()
Bitmap setupRectangleOnSize4096()
OutputDeviceTestLine()=default
static TestResult checkDashedLine(Bitmap &rBitmap)
Bitmap setupRectangle(bool bEnableAA)
Bitmap setupLineJoinNone()
Bitmap setupRectangleOnSize4096()
Bitmap setupRectangle(bool bEnableAA)
Bitmap setupRectangleOnSize1028()
OutputDeviceTestPixel()=default
OutputDeviceTestPolyLineB2D()=default
Bitmap setupRectangleOnSize1028()
Bitmap setupHalfEllipse(bool aEnableAA=false)
Bitmap setupRectangleOnSize4096()
Bitmap setupOpenPolygon()
Bitmap setupRectangle(bool bEnableAA)
Bitmap setupClosedBezier()
OutputDeviceTestPolyLine()=default
Bitmap setupAADropShape()
Bitmap setupRectangleOnSize4096()
Bitmap setupRectangle(bool bEnableAA)
Bitmap setupOpenPolygon()
Bitmap setupHalfEllipse(bool aEnableAA=false)
Bitmap setupRectangleOnSize1028()
Bitmap setupFilledRectangle(bool useLineColor)
Bitmap setupRectangleOnSize1028()
Bitmap setupIntersectingRectangles()
Bitmap setupRectangleOnSize4096()
Bitmap setupOpenPolygon()
Bitmap setupRectangle(bool bEnableAA)
OutputDeviceTestPolyPolygonB2D()=default
Bitmap setupFilledRectangle(bool useLineColor)
Bitmap setupRectangleOnSize4096()
Bitmap setupOpenPolygon()
Bitmap setupIntersectingRectangles()
Bitmap setupRectangleOnSize1028()
Bitmap setupRectangle(bool bEnableAA)
OutputDeviceTestPolyPolygon()=default
Bitmap setupFilledAsymmetricalDropShape()
Bitmap setupOpenPolygon()
Bitmap setupAADropShape()
Bitmap setupRectangleOnSize4096()
Bitmap setupClosedBezier()
Bitmap setupRectangleOnSize1028()
Bitmap setupHalfEllipse(bool aEnableAA=false)
Bitmap setupRectangle(bool bEnableAA)
Bitmap setupFilledRectangle(bool useLineColor)
OutputDeviceTestPolygon()=default
Bitmap setupRectangleOnSize1028()
OutputDeviceTestRect()=default
Bitmap setupInvert_NONE()
Bitmap setupFilledRectangle(bool useLineColor)
Bitmap setupRectangleOnSize4096()
Bitmap setupInvert_TrackFrame()
Bitmap setupRectangle(bool bEnableAA)
PixelFormat
Pixel format of the bitmap in bits per pixel.