Lines Matching refs:rDevice
59 void implTestBasicDiagonalLines(const BitmapDeviceSharedPtr& rDevice) in implTestBasicDiagonalLines() argument
61 rDevice->clear(Color(0)); in implTestBasicDiagonalLines()
66 rDevice->drawLine( aPt1, aPt2, aCol, DrawMode_PAINT ); in implTestBasicDiagonalLines()
68 rDevice->getPixel(aPt1) == aCol); in implTestBasicDiagonalLines()
70 rDevice->getPixel(aPt2) == aCol); in implTestBasicDiagonalLines()
73 rDevice->getPixel(aPt3) != aCol); in implTestBasicDiagonalLines()
76 rDevice->getPixel(aPt4) != aCol); in implTestBasicDiagonalLines()
79 countPixel( rDevice, aCol ) == 9); in implTestBasicDiagonalLines()
81 rDevice->drawLine( aPt2, aPt1, aCol, DrawMode_PAINT ); in implTestBasicDiagonalLines()
85 countPixel( rDevice, aCol ) == 9); in implTestBasicDiagonalLines()
88 void implTestBasicHorizontalLines(const BitmapDeviceSharedPtr& rDevice) in implTestBasicHorizontalLines() argument
90 rDevice->clear(Color(0)); in implTestBasicHorizontalLines()
95 rDevice->drawLine( aPt1, aPt2, aCol, DrawMode_PAINT ); in implTestBasicHorizontalLines()
97 rDevice->getPixel(aPt1) == aCol); in implTestBasicHorizontalLines()
99 rDevice->getPixel(aPt2) == aCol); in implTestBasicHorizontalLines()
101 countPixel( rDevice, aCol ) == 11); in implTestBasicHorizontalLines()
103 rDevice->clear(Color(0)); in implTestBasicHorizontalLines()
104 rDevice->drawLine( aPt2, aPt1, aCol, DrawMode_PAINT ); in implTestBasicHorizontalLines()
106 rDevice->getPixel(aPt1) == aCol); in implTestBasicHorizontalLines()
108 rDevice->getPixel(aPt2) == aCol); in implTestBasicHorizontalLines()
110 countPixel( rDevice, aCol ) == 11); in implTestBasicHorizontalLines()
113 void implTestBasicVerticalLines(const BitmapDeviceSharedPtr& rDevice) in implTestBasicVerticalLines() argument
115 rDevice->clear(Color(0)); in implTestBasicVerticalLines()
120 rDevice->drawLine( aPt1, aPt2, aCol, DrawMode_PAINT ); in implTestBasicVerticalLines()
122 rDevice->getPixel(aPt1) == aCol); in implTestBasicVerticalLines()
124 rDevice->getPixel(aPt2) == aCol); in implTestBasicVerticalLines()
127 rDevice->getPixel(aPt3) != aCol); in implTestBasicVerticalLines()
130 rDevice->getPixel(aPt4) != aCol); in implTestBasicVerticalLines()
133 countPixel( rDevice, aCol ) == 9); in implTestBasicVerticalLines()
138 void implTestTieBreaking(const BitmapDeviceSharedPtr& rDevice) in implTestTieBreaking() argument
140 rDevice->clear(Color(0)); in implTestTieBreaking()
145 rDevice->drawLine( aPt1, aPt2, aCol, DrawMode_PAINT ); in implTestTieBreaking()
147 rDevice->getPixel(aPt1) == aCol); in implTestTieBreaking()
149 rDevice->getPixel(basegfx::B2IPoint(2,1)) == aCol); in implTestTieBreaking()
151 rDevice->getPixel(aPt2) == aCol); in implTestTieBreaking()
154 countPixel( rDevice, aCol ) == 3); in implTestTieBreaking()
156 rDevice->drawLine( aPt2, aPt1, aCol, DrawMode_PAINT ); in implTestTieBreaking()
158 rDevice->getPixel(basegfx::B2IPoint(2,2)) == aCol); in implTestTieBreaking()
162 countPixel( rDevice, aCol ) == 4); in implTestTieBreaking()