// 双线性插值,速度快
LCalc := s1_u*(s1_v*afij + sv*afijJ1) + su*(s1_v*afiJ1j + sv*afiJ1jJ1);
if LCalc <= 0.0 then
LAlphaDest^ := 0
else if LCalc >= 255.0 then
LAlphaDest^ := 255
else
LAlphaDest^ := Round(LCalc);
if XAlpha < 255 then
LAlphaDest^ := LAlphaDest^ * XAlpha div 255;
Integer(LPTmpRGB) := Integer(LImageDest);
LCalc := s1_u*(s1_v*Rfij + sv*RfijJ1) + su*(s1_v*RfiJ1j + sv*RfiJ1jJ1);
if LCalc <= 0.0 then
LPTmpRGB^.rgbtRed := 0
else if LCalc >= 255.0 then
LPTmpRGB^.rgbtRed := 255
else
LPTmpRGB^.rgbtRed := Round(LCalc);
LCalc := s1_u*(s1_v*Gfij + sv*GfijJ1) + su*(s1_v*GfiJ1j + sv*GfiJ1jJ1);
if LCalc <= 0.0 then
LPTmpRGB^.rgbtGreen := 0
else if LCalc >= 255.0 then
LPTmpRGB^.rgbtGreen := 255
else
LPTmpRGB^.rgbtGreen := Round(LCalc);
LCalc := s1_u*(s1_v*Bfij + sv*BfijJ1) + su*(s1_v*BfiJ1j + sv*BfiJ1jJ1);
if LCalc <= 0.0 then
LPTmpRGB^.rgbtBlue := 0
else if LCalc >= 255.0 then
LPTmpRGB^.rgbtBlue := 255
else
LPTmpRGB^.rgbtBlue := Round(LCalc);
//2次立方,速度慢些
<span style="font-family:Tahoma, 'Microsoft Yahei';font-size:10px;color:#000000;border-collapse: separate; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-family:punctuation, 微软雅黑, Tohoma;font-size:14px;color:#444444;border-collapse: collapse; line-height: 22px; "></span></span><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> ss1jv := s1jv*afi_1j_1 + sv*afi_1j + s1_v*afi_1jJ1 + s2_v*afi_1jJ2;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> ssv :=