why shear argument in cvinitfont() function does not work?
IplImage *Image=cvLoadImage("ABC.jpg");
CvFont Font1;
cvInitFont(&Font1,CV_FONT_HERSHEY_COMPLEX,1,1,0.0f,2);
// when i set shear argument to 0.0f , i did not get any effect
CvFont Font2;
cvInitFont(&Font2,CV_FONT_HERSHEY_COMPLEX,1,1,1.0f,2);
// also whean shear arrgument equal 1.0f , i did not get any effect
cvPutText(Image,"Hello World",cvPoint(50,50),&Font1,cvScalar(255));
cvPutText(Image,"Hello World",cvPoint(200,50),&Font2,cvScalar(255));
cvNamedWindow("0",0);
cvShowImage("0",Image);
cvWaitKey(0);
No comments:
Post a Comment