void WINAPI OnTimer(HWND hWnd,UINT nMsg,UINT nTimerid,DWORD dwTime)
{
	//The zoom range is from 1.0 to 1.5
	if (ScaleX >= 1.5 || ScaleY >= 1.5)   
		flag = false;
	else if(ScaleX <= 1 || ScaleY<=1)
		flag = true;

	if(true == flag)
		ScaleX= ScaleY +=0.1;
	else
		ScaleX = ScaleY -= 0.1;	
	Bilinear(srcImage,rstImage);
}
예제 #2
0
Filter *ButtwBilinear(float * fp, float * fs, float * ap, float * as, float * fc, int *out_n)
{
    return Bilinear(*fp, *fs, *ap, *as, *fc, out_n, FindButtwPoles);
} 
예제 #3
0
Filter *ChebBilinear(float * fp, float * fs, float * ap, float * as, float * fc, int *out_n)
{
    return Bilinear(*fp, *fs, *ap, *as, *fc, out_n, FindChebPoles);
}