DrawInfo.fill_pattern has changes ?
Posted: 2016-05-12T19:00:35-07:00
DrawInfo.fill_pattern on the 6.8.9 version of the performance of normal, when I upgraded to 6.9.4, result of the program has changed.
Displayed properly on 6.8.9 version: filled with images displayed in the middle.
![Image](https://img.alicdn.com/imgextra/i4/394526101/TB2HwJuoVXXXXb.XXXXXXXXXXXX-394526101.jpg)
On the 6.9.4 version, Show is changed. Pictures displayed filling the position has changed, not centered.
![Image](https://img.alicdn.com/imgextra/i4/394526101/TB2StI.oFXXXXcnXpXXXXXXXXXX-394526101.jpg)
How to modify the code needs to do?
Please advise.
thanks.
Code: Select all
DrawingWand *d_wand = NewDrawingWand();
//Drawing diamond
DrawPathStart(d_wand);
int x, y; //point
x = width / 2;
y = height / 2 - i * step * hScale; //(x,y)
DrawPathMoveToAbsolute(d_wand, x, y);
x = width / 2 - i * step;
y = height / 2; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
x = width / 2;
y = height / 2 + i * step * hScale; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
x = width / 2 + i * step;
y = height / 2; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
x = width / 2;
y = height / 2 - i * step * hScale; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
DrawPathClose(d_wand);
DrawPathFinish(d_wand);
// Now "peek" at the wand
DrawInfo *draw_info = PeekDrawingWand(d_wand);
draw_info->fill_pattern = mw->images; // set fill pattern ******
DrawImage(mw_frame->images, draw_info);
![Image](https://img.alicdn.com/imgextra/i4/394526101/TB2HwJuoVXXXXb.XXXXXXXXXXXX-394526101.jpg)
On the 6.9.4 version, Show is changed. Pictures displayed filling the position has changed, not centered.
![Image](https://img.alicdn.com/imgextra/i4/394526101/TB2StI.oFXXXXcnXpXXXXXXXXXX-394526101.jpg)
How to modify the code needs to do?
Please advise.
thanks.