Searched refs:rtFit (Results 1 – 2 of 2) sorted by relevance
775 CFX_RectF rtFit; in XFA_DrawImage() local776 rtFit.Set(rtImage.left, rtImage.top, fWidth, fHeight); in XFA_DrawImage()779 FX_FLOAT f1 = rtImage.height / rtFit.height; in XFA_DrawImage()780 FX_FLOAT f2 = rtImage.width / rtFit.width; in XFA_DrawImage()782 rtFit.height = rtFit.height * f1; in XFA_DrawImage()783 rtFit.width = rtFit.width * f1; in XFA_DrawImage()788 FX_FLOAT f1 = rtImage.height / rtFit.height; in XFA_DrawImage()789 rtFit.height = rtImage.height; in XFA_DrawImage()790 rtFit.width = f1 * rtFit.width; in XFA_DrawImage()793 rtFit.height = rtImage.height; in XFA_DrawImage()[all …]
980 CFX_RectF rtImage, rtFit; in CalculateImageAutoSize() local982 rtFit.Set(0, 0, 0, 0); in CalculateImageAutoSize()990 if (GetWidth(rtFit.width)) { in CalculateImageAutoSize()991 GetWidthWithoutMargin(rtFit.width); in CalculateImageAutoSize()993 rtFit.width = rtImage.width; in CalculateImageAutoSize()995 if (GetHeight(rtFit.height)) { in CalculateImageAutoSize()996 GetHeightWithoutMargin(rtFit.height); in CalculateImageAutoSize()998 rtFit.height = rtImage.height; in CalculateImageAutoSize()1000 size.x = rtFit.width; in CalculateImageAutoSize()1001 size.y = rtFit.height; in CalculateImageAutoSize()[all …]