Lines Matching refs:aPosAry

260 	SalTwoRect aPosAry;  in DrawOutDev()  local
261 aPosAry.mnSrcWidth = ImplLogicWidthToDevicePixel( rSrcSize.Width() ); in DrawOutDev()
262 aPosAry.mnSrcHeight = ImplLogicHeightToDevicePixel( rSrcSize.Height() ); in DrawOutDev()
263 aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() ); in DrawOutDev()
264 aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() ); in DrawOutDev()
266 if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) in DrawOutDev()
268 aPosAry.mnSrcX = ImplLogicXToDevicePixel( rSrcPt.X() ); in DrawOutDev()
269 aPosAry.mnSrcY = ImplLogicYToDevicePixel( rSrcPt.Y() ); in DrawOutDev()
270 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in DrawOutDev()
271 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in DrawOutDev()
275 Rectangle aSrcRect( Point( aPosAry.mnSrcX, aPosAry.mnSrcY ), in DrawOutDev()
276 Size( aPosAry.mnSrcWidth, aPosAry.mnSrcHeight ) ); in DrawOutDev()
282 if ( (aPosAry.mnSrcX+aPosAry.mnSrcWidth-1) > aSrcOutRect.Right() ) in DrawOutDev()
284 long nOldWidth = aPosAry.mnSrcWidth; in DrawOutDev()
285 aPosAry.mnSrcWidth -= nOldRight-aSrcRect.Right(); in DrawOutDev()
286 aPosAry.mnDestWidth = aPosAry.mnDestWidth*aPosAry.mnSrcWidth/nOldWidth; in DrawOutDev()
289 if ( (aPosAry.mnSrcY+aPosAry.mnSrcHeight-1) > aSrcOutRect.Bottom() ) in DrawOutDev()
291 long nOldHeight = aPosAry.mnSrcHeight; in DrawOutDev()
292 aPosAry.mnSrcHeight -= nOldBottom-aSrcRect.Bottom(); in DrawOutDev()
293 aPosAry.mnDestHeight = aPosAry.mnDestHeight*aPosAry.mnSrcHeight/nOldHeight; in DrawOutDev()
296 mpGraphics->CopyBits( aPosAry, NULL, this, NULL ); in DrawOutDev()
333 SalTwoRect aPosAry; in DrawOutDev() local
334 aPosAry.mnSrcX = rOutDev.ImplLogicXToDevicePixel( rSrcPt.X() ); in DrawOutDev()
335 aPosAry.mnSrcY = rOutDev.ImplLogicYToDevicePixel( rSrcPt.Y() ); in DrawOutDev()
336 aPosAry.mnSrcWidth = rOutDev.ImplLogicWidthToDevicePixel( rSrcSize.Width() ); in DrawOutDev()
337 aPosAry.mnSrcHeight = rOutDev.ImplLogicHeightToDevicePixel( rSrcSize.Height() ); in DrawOutDev()
338 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in DrawOutDev()
339 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in DrawOutDev()
340 aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() ); in DrawOutDev()
341 aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() ); in DrawOutDev()
356 ImplDrawOutDevDirect( &rOutDev, aPosAry ); in DrawOutDev()
372 ImplDrawOutDevDirect( &rOutDev, aPosAry ); in DrawOutDev()
395 SalTwoRect aPosAry; in CopyArea() local
396 aPosAry.mnSrcWidth = ImplLogicWidthToDevicePixel( rSrcSize.Width() ); in CopyArea()
397 aPosAry.mnSrcHeight = ImplLogicHeightToDevicePixel( rSrcSize.Height() ); in CopyArea()
399 if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight ) in CopyArea()
401 aPosAry.mnSrcX = ImplLogicXToDevicePixel( rSrcPt.X() ); in CopyArea()
402 aPosAry.mnSrcY = ImplLogicYToDevicePixel( rSrcPt.Y() ); in CopyArea()
403 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in CopyArea()
404 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in CopyArea()
408 Rectangle aSrcRect( Point( aPosAry.mnSrcX, aPosAry.mnSrcY ), in CopyArea()
409 Size( aPosAry.mnSrcWidth, aPosAry.mnSrcHeight ) ); in CopyArea()
415 if ( (aPosAry.mnSrcX+aPosAry.mnSrcWidth-1) > aSrcOutRect.Right() ) in CopyArea()
416 aPosAry.mnSrcWidth -= nOldRight-aSrcRect.Right(); in CopyArea()
418 if ( (aPosAry.mnSrcY+aPosAry.mnSrcHeight-1) > aSrcOutRect.Bottom() ) in CopyArea()
419 aPosAry.mnSrcHeight -= nOldBottom-aSrcRect.Bottom(); in CopyArea()
424 aPosAry.mnDestX-aPosAry.mnSrcX, in CopyArea()
425 aPosAry.mnDestY-aPosAry.mnSrcY, in CopyArea()
428 mpGraphics->CopyArea( aPosAry.mnDestX, aPosAry.mnDestY, in CopyArea()
429 aPosAry.mnSrcX, aPosAry.mnSrcY, in CopyArea()
430 aPosAry.mnSrcWidth, aPosAry.mnSrcHeight, in CopyArea()
435 aPosAry.mnDestWidth = aPosAry.mnSrcWidth; in CopyArea()
436 aPosAry.mnDestHeight = aPosAry.mnSrcHeight; in CopyArea()
437 mpGraphics->CopyBits( aPosAry, NULL, this, NULL ); in CopyArea()
477 SalTwoRect aPosAry; in ImplDrawFrameDev() local
478 aPosAry.mnSrcX = rDevPt.X(); in ImplDrawFrameDev()
479 aPosAry.mnSrcY = rDevPt.Y(); in ImplDrawFrameDev()
480 aPosAry.mnSrcWidth = rDevSize.Width(); in ImplDrawFrameDev()
481 aPosAry.mnSrcHeight = rDevSize.Height(); in ImplDrawFrameDev()
482 aPosAry.mnDestX = rPt.X(); in ImplDrawFrameDev()
483 aPosAry.mnDestY = rPt.Y(); in ImplDrawFrameDev()
484 aPosAry.mnDestWidth = rDevSize.Width(); in ImplDrawFrameDev()
485 aPosAry.mnDestHeight = rDevSize.Height(); in ImplDrawFrameDev()
486 ImplDrawOutDevDirect( &rOutDev, aPosAry ); in ImplDrawFrameDev()
638 SalTwoRect aPosAry; in ImplDrawBitmap() local
640 aPosAry.mnSrcX = rSrcPtPixel.X(); in ImplDrawBitmap()
641 aPosAry.mnSrcY = rSrcPtPixel.Y(); in ImplDrawBitmap()
642 aPosAry.mnSrcWidth = rSrcSizePixel.Width(); in ImplDrawBitmap()
643 aPosAry.mnSrcHeight = rSrcSizePixel.Height(); in ImplDrawBitmap()
644 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in ImplDrawBitmap()
645 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in ImplDrawBitmap()
646 aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() ); in ImplDrawBitmap()
647 aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() ); in ImplDrawBitmap()
649 const sal_uLong nMirrFlags = ImplAdjustTwoRect( aPosAry, aBmp.GetSizePixel() ); in ImplDrawBitmap()
651 if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) in ImplDrawBitmap()
672 if( aPosAry.mnDestWidth > 2048 || aPosAry.mnDestHeight > 2048 ) in ImplDrawBitmap()
681 if( aPosAry.mnDestX + aPosAry.mnDestWidth >= 0 in ImplDrawBitmap()
682 && aPosAry.mnDestX < mnOutWidth in ImplDrawBitmap()
683 && aPosAry.mnDestY + aPosAry.mnDestHeight >= 0 in ImplDrawBitmap()
684 && aPosAry.mnDestY < mnOutHeight ) in ImplDrawBitmap()
687 if( aPosAry.mnDestWidth > 3*mnOutWidth && aPosAry.mnSrcWidth ) in ImplDrawBitmap()
689 const double nScaleX = aPosAry.mnDestWidth/double(aPosAry.mnSrcWidth); in ImplDrawBitmap()
691 if( aPosAry.mnDestX + aPosAry.mnDestWidth > mnOutWidth ) in ImplDrawBitmap()
693 aPosAry.mnDestWidth = Max(long(0),mnOutWidth-aPosAry.mnDestX); in ImplDrawBitmap()
695 if( aPosAry.mnDestX < 0 ) in ImplDrawBitmap()
697 aPosAry.mnDestWidth += aPosAry.mnDestX; in ImplDrawBitmap()
698aPosAry.mnSrcX -= sal::static_int_cast<long>(aPosAry.mnDestX / nScaleX); in ImplDrawBitmap()
699 aPosAry.mnDestX = 0; in ImplDrawBitmap()
702aPosAry.mnSrcWidth = sal::static_int_cast<long>(aPosAry.mnDestWidth / nScaleX); in ImplDrawBitmap()
705 if( aPosAry.mnDestHeight > 3*mnOutHeight && aPosAry.mnSrcHeight != 0 ) in ImplDrawBitmap()
707 const double nScaleY = aPosAry.mnDestHeight/double(aPosAry.mnSrcHeight); in ImplDrawBitmap()
709 if( aPosAry.mnDestY + aPosAry.mnDestHeight > mnOutHeight ) in ImplDrawBitmap()
711 aPosAry.mnDestHeight = Max(long(0),mnOutHeight-aPosAry.mnDestY); in ImplDrawBitmap()
713 if( aPosAry.mnDestY < 0 ) in ImplDrawBitmap()
715 aPosAry.mnDestHeight += aPosAry.mnDestY; in ImplDrawBitmap()
716aPosAry.mnSrcY -= sal::static_int_cast<long>(aPosAry.mnDestY / nScaleY); in ImplDrawBitmap()
717 aPosAry.mnDestY = 0; in ImplDrawBitmap()
720aPosAry.mnSrcHeight = sal::static_int_cast<long>(aPosAry.mnDestHeight / nScaleY); in ImplDrawBitmap()
727 … if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) in ImplDrawBitmap()
729 … mpGraphics->DrawBitmap( aPosAry, *aBmp.ImplGetImpBitmap()->ImplGetSalBitmap(), this ); in ImplDrawBitmap()
1147 SalTwoRect aPosAry; in ImplDrawBitmapEx() local
1149 aPosAry.mnSrcX = rSrcPtPixel.X(); in ImplDrawBitmapEx()
1150 aPosAry.mnSrcY = rSrcPtPixel.Y(); in ImplDrawBitmapEx()
1151 aPosAry.mnSrcWidth = rSrcSizePixel.Width(); in ImplDrawBitmapEx()
1152 aPosAry.mnSrcHeight = rSrcSizePixel.Height(); in ImplDrawBitmapEx()
1153 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in ImplDrawBitmapEx()
1154 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in ImplDrawBitmapEx()
1155 aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() ); in ImplDrawBitmapEx()
1156 aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() ); in ImplDrawBitmapEx()
1158 const sal_uLong nMirrFlags = ImplAdjustTwoRect( aPosAry, aBmpEx.GetSizePixel() ); in ImplDrawBitmapEx()
1160 if( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) in ImplDrawBitmapEx()
1179 …if(!IsMapMode() && aPosAry.mnSrcWidth == aPosAry.mnDestWidth && aPosAry.mnSrcHeight == aPosAry.mnD… in ImplDrawBitmapEx()
1185 … if(bTryDirectPaint && mpGraphics->DrawAlphaBitmap(aPosAry, *pSalSrcBmp, *pSalAlphaBmp, this)) in ImplDrawBitmapEx()
1221 aPosAry.mnDestWidth == aPosAry.mnSrcWidth && in ImplDrawBitmapEx()
1222 aPosAry.mnDestHeight == aPosAry.mnSrcHeight ) in ImplDrawBitmapEx()
1225 aClipRegionBounds.Intersection( Rectangle( aPosAry.mnDestX, in ImplDrawBitmapEx()
1226 aPosAry.mnDestY, in ImplDrawBitmapEx()
1227aPosAry.mnDestX + aPosAry.mnDestWidth - 1, in ImplDrawBitmapEx()
1228aPosAry.mnDestY + aPosAry.mnDestHeight - 1 ) ); in ImplDrawBitmapEx()
1236 aPosAry.mnSrcX += aClipRegionBounds.Left() - aPosAry.mnDestX; in ImplDrawBitmapEx()
1237 aPosAry.mnSrcY += aClipRegionBounds.Top() - aPosAry.mnDestY; in ImplDrawBitmapEx()
1238 aPosAry.mnSrcWidth = aClipRegionBounds.GetWidth(); in ImplDrawBitmapEx()
1239 aPosAry.mnSrcHeight = aClipRegionBounds.GetHeight(); in ImplDrawBitmapEx()
1241 aPosAry.mnDestX = aClipRegionBounds.Left(); in ImplDrawBitmapEx()
1242 aPosAry.mnDestY = aClipRegionBounds.Top(); in ImplDrawBitmapEx()
1243 aPosAry.mnDestWidth = aClipRegionBounds.GetWidth(); in ImplDrawBitmapEx()
1244 aPosAry.mnDestHeight = aClipRegionBounds.GetHeight(); in ImplDrawBitmapEx()
1248 mpGraphics->DrawBitmap( aPosAry, *pSalSrcBmp, in ImplDrawBitmapEx()
1270 mpGraphics->DrawBitmap( aPosAry, *pSalSrcBmp, this ); in ImplDrawBitmapEx()
1416 SalTwoRect aPosAry; in ImplDrawMask() local
1418 aPosAry.mnSrcX = rSrcPtPixel.X(); in ImplDrawMask()
1419 aPosAry.mnSrcY = rSrcPtPixel.Y(); in ImplDrawMask()
1420 aPosAry.mnSrcWidth = rSrcSizePixel.Width(); in ImplDrawMask()
1421 aPosAry.mnSrcHeight = rSrcSizePixel.Height(); in ImplDrawMask()
1422 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in ImplDrawMask()
1423 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in ImplDrawMask()
1424 aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() ); in ImplDrawMask()
1425 aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() ); in ImplDrawMask()
1428 const sal_uLong nMirrFlags = ImplAdjustTwoRect( aPosAry, pImpBmp->ImplGetSize() ); in ImplDrawMask()
1431 if( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) in ImplDrawMask()
1438 mpGraphics->DrawMask( aPosAry, *aTmp.ImplGetImpBitmap()->ImplGetSalBitmap(), in ImplDrawMask()
1442 mpGraphics->DrawMask( aPosAry, *pImpBmp->ImplGetSalBitmap(), in ImplDrawMask()
1584 SalTwoRect aPosAry; in GetBitmap() local
1586 aPosAry.mnSrcX = nX; in GetBitmap()
1587 aPosAry.mnSrcY = nY; in GetBitmap()
1588 aPosAry.mnSrcWidth = nWidth; in GetBitmap()
1589 aPosAry.mnSrcHeight = nHeight; in GetBitmap()
1590 aPosAry.mnDestX = ( aRect.Left() < mnOutOffX ) ? ( mnOutOffX - aRect.Left() ) : 0L; in GetBitmap()
1591 aPosAry.mnDestY = ( aRect.Top() < mnOutOffY ) ? ( mnOutOffY - aRect.Top() ) : 0L; in GetBitmap()
1592 aPosAry.mnDestWidth = nWidth; in GetBitmap()
1593 aPosAry.mnDestHeight = nHeight; in GetBitmap()
1597 (((OutputDevice*)&aVDev)->mpGraphics)->CopyBits( aPosAry, mpGraphics, this, this ); in GetBitmap()