Lines Matching refs:rTwoRect
88 sal_uLong ImplAdjustTwoRect( SalTwoRect& rTwoRect, const Size& rSizePix ) in ImplAdjustTwoRect() argument
92 if ( rTwoRect.mnDestWidth < 0 ) in ImplAdjustTwoRect()
94 rTwoRect.mnSrcX = rSizePix.Width() - rTwoRect.mnSrcX - rTwoRect.mnSrcWidth; in ImplAdjustTwoRect()
95 rTwoRect.mnDestWidth = -rTwoRect.mnDestWidth; in ImplAdjustTwoRect()
96 rTwoRect.mnDestX -= rTwoRect.mnDestWidth-1; in ImplAdjustTwoRect()
100 if ( rTwoRect.mnDestHeight < 0 ) in ImplAdjustTwoRect()
102 rTwoRect.mnSrcY = rSizePix.Height() - rTwoRect.mnSrcY - rTwoRect.mnSrcHeight; in ImplAdjustTwoRect()
103 rTwoRect.mnDestHeight = -rTwoRect.mnDestHeight; in ImplAdjustTwoRect()
104 rTwoRect.mnDestY -= rTwoRect.mnDestHeight-1; in ImplAdjustTwoRect()
108 if( ( rTwoRect.mnSrcX < 0 ) || ( rTwoRect.mnSrcX >= rSizePix.Width() ) || in ImplAdjustTwoRect()
109 ( rTwoRect.mnSrcY < 0 ) || ( rTwoRect.mnSrcY >= rSizePix.Height() ) || in ImplAdjustTwoRect()
110 ( ( rTwoRect.mnSrcX + rTwoRect.mnSrcWidth ) > rSizePix.Width() ) || in ImplAdjustTwoRect()
111 ( ( rTwoRect.mnSrcY + rTwoRect.mnSrcHeight ) > rSizePix.Height() ) ) in ImplAdjustTwoRect()
113 const Rectangle aSourceRect( Point( rTwoRect.mnSrcX, rTwoRect.mnSrcY ), in ImplAdjustTwoRect()
114 Size( rTwoRect.mnSrcWidth, rTwoRect.mnSrcHeight ) ); in ImplAdjustTwoRect()
120 rTwoRect.mnSrcWidth = rTwoRect.mnSrcHeight = rTwoRect.mnDestWidth = rTwoRect.mnDestHeight = 0; in ImplAdjustTwoRect()
123 …const double fFactorX = ( rTwoRect.mnSrcWidth > 1 ) ? (double) ( rTwoRect.mnDestWidth - 1 ) / ( rT… in ImplAdjustTwoRect()
124 …const double fFactorY = ( rTwoRect.mnSrcHeight > 1 ) ? (double) ( rTwoRect.mnDestHeight - 1 ) / ( … in ImplAdjustTwoRect()
126 …const long nDstX1 = rTwoRect.mnDestX + FRound( fFactorX * ( aCropRect.Left() - rTwoRect.mnSrcX ) ); in ImplAdjustTwoRect()
127 … const long nDstY1 = rTwoRect.mnDestY + FRound( fFactorY * ( aCropRect.Top() - rTwoRect.mnSrcY ) ); in ImplAdjustTwoRect()
128 …const long nDstX2 = rTwoRect.mnDestX + FRound( fFactorX * ( aCropRect.Right() - rTwoRect.mnSrcX ) … in ImplAdjustTwoRect()
129 …const long nDstY2 = rTwoRect.mnDestY + FRound( fFactorY * ( aCropRect.Bottom() - rTwoRect.mnSrcY )… in ImplAdjustTwoRect()
131 rTwoRect.mnSrcX = aCropRect.Left(); in ImplAdjustTwoRect()
132 rTwoRect.mnSrcY = aCropRect.Top(); in ImplAdjustTwoRect()
133 rTwoRect.mnSrcWidth = aCropRect.GetWidth(); in ImplAdjustTwoRect()
134 rTwoRect.mnSrcHeight = aCropRect.GetHeight(); in ImplAdjustTwoRect()
135 rTwoRect.mnDestX = nDstX1; in ImplAdjustTwoRect()
136 rTwoRect.mnDestY = nDstY1; in ImplAdjustTwoRect()
137 rTwoRect.mnDestWidth = nDstX2 - nDstX1 + 1; in ImplAdjustTwoRect()
138 rTwoRect.mnDestHeight = nDstY2 - nDstY1 + 1; in ImplAdjustTwoRect()