旋转平行的方法
方式一(只能是旋转/平移/缩放中的一种?待细究)
hom_mat2d_identity (HomMat2DIdentity)
* hom_mat2d_rotate (HomMat2DIdentity, rad(-10), 0, 0, HomMat2DRotate)
hom_mat2d_translate (HomMat2DIdentity, 64, 64, HomMat2DTranslate)
affine_trans_image (Image, ImageAffineTrans, HomMat2DTranslate, 'constant', 'false')
方式二 (原位置-现位置的映射关系,这样看起来更实用?)
vector_angle_to_rigid (0, 0, 0, 100, 100, rad(10), HomMat2D)
affine_trans_image (Image, ImageAffineTrans, HomMat2D, 'constant', 'false')

浙公网安备 33010602011771号