Lines Matching refs:rtFit
92 CFX_RectF rtFit(rtImage.TopLeft(), in XFA_DrawImage() local
97 float f1 = rtImage.height / rtFit.height; in XFA_DrawImage()
98 float f2 = rtImage.width / rtFit.width; in XFA_DrawImage()
100 rtFit.height = rtFit.height * f1; in XFA_DrawImage()
101 rtFit.width = rtFit.width * f1; in XFA_DrawImage()
105 float f1 = rtImage.height / rtFit.height; in XFA_DrawImage()
106 rtFit.height = rtImage.height; in XFA_DrawImage()
107 rtFit.width = f1 * rtFit.width; in XFA_DrawImage()
111 rtFit.height = rtImage.height; in XFA_DrawImage()
112 rtFit.width = rtImage.width; in XFA_DrawImage()
115 float f1 = rtImage.width / rtFit.width; in XFA_DrawImage()
116 rtFit.width = rtImage.width; in XFA_DrawImage()
117 rtFit.height = rtFit.height * f1; in XFA_DrawImage()
126 rtFit.left += (rtImage.width - rtFit.width) / 2; in XFA_DrawImage()
128 rtFit.left = rtImage.right() - rtFit.width; in XFA_DrawImage()
131 rtFit.top += (rtImage.height - rtFit.height) / 2; in XFA_DrawImage()
133 rtFit.top = rtImage.bottom() - rtImage.height; in XFA_DrawImage()
143 CFX_Matrix(rtFit.width, 0, 0, rtFit.height, rtFit.left, rtFit.top)); in XFA_DrawImage()