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()
698 … aPosAry.mnSrcX -= sal::static_int_cast<long>(aPosAry.mnDestX / nScaleX); in ImplDrawBitmap()
699 aPosAry.mnDestX = 0; in ImplDrawBitmap()
702 … aPosAry.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()
716 … aPosAry.mnSrcY -= sal::static_int_cast<long>(aPosAry.mnDestY / nScaleY); in ImplDrawBitmap()
717 aPosAry.mnDestY = 0; in ImplDrawBitmap()
720 … aPosAry.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()
1138 SalTwoRect aPosAry; in ImplDrawBitmapEx() local
1140 aPosAry.mnSrcX = rSrcPtPixel.X(); in ImplDrawBitmapEx()
1141 aPosAry.mnSrcY = rSrcPtPixel.Y(); in ImplDrawBitmapEx()
1142 aPosAry.mnSrcWidth = rSrcSizePixel.Width(); in ImplDrawBitmapEx()
1143 aPosAry.mnSrcHeight = rSrcSizePixel.Height(); in ImplDrawBitmapEx()
1144 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in ImplDrawBitmapEx()
1145 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in ImplDrawBitmapEx()
1146 aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() ); in ImplDrawBitmapEx()
1147 aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() ); in ImplDrawBitmapEx()
1149 const sal_uLong nMirrFlags = ImplAdjustTwoRect( aPosAry, aBmpEx.GetSizePixel() ); in ImplDrawBitmapEx()
1151 if( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) in ImplDrawBitmapEx()
1170 …if(!IsMapMode() && aPosAry.mnSrcWidth == aPosAry.mnDestWidth && aPosAry.mnSrcHeight == aPosAry.mnD… in ImplDrawBitmapEx()
1176 … if(bTryDirectPaint && mpGraphics->DrawAlphaBitmap(aPosAry, *pSalSrcBmp, *pSalAlphaBmp, this)) in ImplDrawBitmapEx()
1212 aPosAry.mnDestWidth == aPosAry.mnSrcWidth && in ImplDrawBitmapEx()
1213 aPosAry.mnDestHeight == aPosAry.mnSrcHeight ) in ImplDrawBitmapEx()
1216 aClipRegionBounds.Intersection( Rectangle( aPosAry.mnDestX, in ImplDrawBitmapEx()
1217 aPosAry.mnDestY, in ImplDrawBitmapEx()
1218 … aPosAry.mnDestX + aPosAry.mnDestWidth - 1, in ImplDrawBitmapEx()
1219 … aPosAry.mnDestY + aPosAry.mnDestHeight - 1 ) ); in ImplDrawBitmapEx()
1227 aPosAry.mnSrcX += aClipRegionBounds.Left() - aPosAry.mnDestX; in ImplDrawBitmapEx()
1228 aPosAry.mnSrcY += aClipRegionBounds.Top() - aPosAry.mnDestY; in ImplDrawBitmapEx()
1229 aPosAry.mnSrcWidth = aClipRegionBounds.GetWidth(); in ImplDrawBitmapEx()
1230 aPosAry.mnSrcHeight = aClipRegionBounds.GetHeight(); in ImplDrawBitmapEx()
1232 aPosAry.mnDestX = aClipRegionBounds.Left(); in ImplDrawBitmapEx()
1233 aPosAry.mnDestY = aClipRegionBounds.Top(); in ImplDrawBitmapEx()
1234 aPosAry.mnDestWidth = aClipRegionBounds.GetWidth(); in ImplDrawBitmapEx()
1235 aPosAry.mnDestHeight = aClipRegionBounds.GetHeight(); in ImplDrawBitmapEx()
1239 mpGraphics->DrawBitmap( aPosAry, *pSalSrcBmp, in ImplDrawBitmapEx()
1261 mpGraphics->DrawBitmap( aPosAry, *pSalSrcBmp, this ); in ImplDrawBitmapEx()
1407 SalTwoRect aPosAry; in ImplDrawMask() local
1409 aPosAry.mnSrcX = rSrcPtPixel.X(); in ImplDrawMask()
1410 aPosAry.mnSrcY = rSrcPtPixel.Y(); in ImplDrawMask()
1411 aPosAry.mnSrcWidth = rSrcSizePixel.Width(); in ImplDrawMask()
1412 aPosAry.mnSrcHeight = rSrcSizePixel.Height(); in ImplDrawMask()
1413 aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() ); in ImplDrawMask()
1414 aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() ); in ImplDrawMask()
1415 aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() ); in ImplDrawMask()
1416 aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() ); in ImplDrawMask()
1419 const sal_uLong nMirrFlags = ImplAdjustTwoRect( aPosAry, pImpBmp->ImplGetSize() ); in ImplDrawMask()
1422 if( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) in ImplDrawMask()
1429 mpGraphics->DrawMask( aPosAry, *aTmp.ImplGetImpBitmap()->ImplGetSalBitmap(), in ImplDrawMask()
1433 mpGraphics->DrawMask( aPosAry, *pImpBmp->ImplGetSalBitmap(), in ImplDrawMask()
1575 SalTwoRect aPosAry; in GetBitmap() local
1577 aPosAry.mnSrcX = nX; in GetBitmap()
1578 aPosAry.mnSrcY = nY; in GetBitmap()
1579 aPosAry.mnSrcWidth = nWidth; in GetBitmap()
1580 aPosAry.mnSrcHeight = nHeight; in GetBitmap()
1581 aPosAry.mnDestX = ( aRect.Left() < mnOutOffX ) ? ( mnOutOffX - aRect.Left() ) : 0L; in GetBitmap()
1582 aPosAry.mnDestY = ( aRect.Top() < mnOutOffY ) ? ( mnOutOffY - aRect.Top() ) : 0L; in GetBitmap()
1583 aPosAry.mnDestWidth = nWidth; in GetBitmap()
1584 aPosAry.mnDestHeight = nHeight; in GetBitmap()
1588 (((OutputDevice*)&aVDev)->mpGraphics)->CopyBits( aPosAry, mpGraphics, this, this ); in GetBitmap()