Lines Matching refs:pDevice
99 BitmapDeviceSharedPtr pDevice( createBitmapDevice( aSize, in testConstruction() local
103 pDevice->getSize() == aSize2 ); in testConstruction()
105 pDevice->isTopDown() == true ); in testConstruction()
107 pDevice->getScanlineFormat() == Format::ONE_BIT_MSB_PAL ); in testConstruction()
109 pDevice->getScanlineStride() == (aSize2.getY() + 7)/8 ); in testConstruction()
111 pDevice->getPalette() ); in testConstruction()
113 (*pDevice->getPalette())[0] == Color(0) ); in testConstruction()
115 (*pDevice->getPalette())[1] == Color(0xFFFFFFFF) ); in testConstruction()
122 BitmapDeviceSharedPtr pDevice( createBitmapDevice( aSize, in testPixelFuncs() local
128 pDevice->setPixel( aPt, aCol, DrawMode_PAINT ); in testPixelFuncs()
130 pDevice->getPixel(aPt) == aCol); in testPixelFuncs()
134 pDevice->setPixel( aPt2, aCol2, DrawMode_PAINT ); in testPixelFuncs()
136 pDevice->getPixel(aPt2) == aCol2); in testPixelFuncs()
140 pDevice->setPixel( aPt3, aCol3, DrawMode_PAINT ); in testPixelFuncs()
142 pDevice->getPixel(aPt3) == aCol3); in testPixelFuncs()
144 pDevice->setPixel( aPt3, aCol2, DrawMode_PAINT ); in testPixelFuncs()
146 pDevice->getPixel(aPt3) == aCol2); in testPixelFuncs()
149 pDevice->setPixel( aPt4, aCol3, DrawMode_PAINT ); in testPixelFuncs()
151 pDevice->setPixel( aPt5, aCol3, DrawMode_PAINT ); in testPixelFuncs()
153 sal_Int32 nPixel(countPixel(pDevice, aCol2)); in testPixelFuncs()
155 pDevice->setPixel( aPt6, aCol2, DrawMode_PAINT ); in testPixelFuncs()
157 countPixel(pDevice, aCol2) == nPixel); in testPixelFuncs()
160 pDevice->getBuffer()[0] == 0x80); in testPixelFuncs()
164 pDevice = createBitmapDevice( aSize, in testPixelFuncs()
168 pDevice->setPixel( aPt2, aCol, DrawMode_PAINT ); in testPixelFuncs()
170 pDevice->getPixel(aPt2) == aCol); in testPixelFuncs()
173 pDevice->setPixel( aPt222, aCol, DrawMode_PAINT ); in testPixelFuncs()
175 pDevice->getPixel(aPt222) == aCol); in testPixelFuncs()
177 pDevice->setPixel( aPt3, aCol, DrawMode_PAINT ); in testPixelFuncs()
179 pDevice->getPixel(aPt3) == aCol); in testPixelFuncs()
182 pDevice->getBuffer()[0] == 0x01); in testPixelFuncs()
184 pDevice->getBuffer()[8] == 0x02); in testPixelFuncs()
189 pDevice = createBitmapDevice( aSize, in testPixelFuncs()
194 pDevice->setPixel( aPt, aCol4, DrawMode_PAINT ); in testPixelFuncs()
196 pDevice->getPixel(aPt) == aCol4); in testPixelFuncs()
199 pDevice->setPixel( aPt2, aCol5, DrawMode_PAINT ); in testPixelFuncs()
201 pDevice->getPixel(aPt2) == aCol5); in testPixelFuncs()
204 pDevice->setPixel( aPt3, aCol6, DrawMode_PAINT ); in testPixelFuncs()
206 pDevice->getPixel(aPt3) == aCol6); in testPixelFuncs()
211 pDevice = createBitmapDevice( aSize, in testPixelFuncs()
215 pDevice->clear( aCol7 ); in testPixelFuncs()
218 pDevice->setPixel( aPt, aCol4, DrawMode_PAINT ); in testPixelFuncs()
220 pDevice->getPixel(aPt) == aCol4); in testPixelFuncs()
223 pDevice->setPixel( aPt2, aCol5, DrawMode_PAINT ); in testPixelFuncs()
225 pDevice->getPixel(aPt2) != aCol7); in testPixelFuncs()
228 pDevice->setPixel( aPt3, aCol6, DrawMode_PAINT ); in testPixelFuncs()
230 pDevice->getPixel(aPt3) == aCol6); in testPixelFuncs()
235 pDevice = createBitmapDevice( aSize, in testPixelFuncs()
240 pDevice->setPixel( aPt, aCol4, DrawMode_PAINT ); in testPixelFuncs()
242 pDevice->getPixel(aPt) == aCol4); in testPixelFuncs()
245 pDevice->setPixel( aPt2, aCol5, DrawMode_PAINT ); in testPixelFuncs()
247 pDevice->getPixel(aPt2) == aCol5); in testPixelFuncs()
250 pDevice->setPixel( aPt3, aCol6, DrawMode_PAINT ); in testPixelFuncs()
252 pDevice->getPixel(aPt3) == aCol6); in testPixelFuncs()
255 pDevice->getBuffer()[2] == 0x3F in testPixelFuncs()
256 && pDevice->getBuffer()[1] == 0x2F in testPixelFuncs()
257 && pDevice->getBuffer()[0] == 0x1F); in testPixelFuncs()
262 pDevice = createBitmapDevice( aSize, in testPixelFuncs()
267 pDevice->setPixel( aPt, aCol4, DrawMode_PAINT ); in testPixelFuncs()
269 pDevice->getPixel(aPt) == aCol4); in testPixelFuncs()
272 pDevice->setPixel( aPt2, aCol5, DrawMode_PAINT ); in testPixelFuncs()
274 pDevice->getPixel(aPt2) == aCol5); in testPixelFuncs()
277 pDevice->setPixel( aPt3, aCol6, DrawMode_PAINT ); in testPixelFuncs()
279 pDevice->getPixel(aPt3) == aCol6); in testPixelFuncs()